Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Host-introspection/F-Sharp/host-introspection.fs
Normal file
14
Task/Host-introspection/F-Sharp/host-introspection.fs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
open System
|
||||
open System.Runtime.InteropServices
|
||||
open System.Diagnostics
|
||||
|
||||
[<DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)>]
|
||||
extern bool IsWow64Process(nativeint hProcess, bool &wow64Process);
|
||||
|
||||
let answerHostInfo =
|
||||
let Is64Bit() =
|
||||
let mutable f64Bit = false;
|
||||
IsWow64Process(Process.GetCurrentProcess().Handle, &f64Bit) |> ignore
|
||||
f64Bit
|
||||
let IsLittleEndian() = BitConverter.IsLittleEndian
|
||||
(IsLittleEndian(), Is64Bit())
|
||||
Loading…
Add table
Add a link
Reference in a new issue