[C#] 64비트 확인

[DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)] 
[return: MarshalAs(UnmanagedType.Bool)] 
public static extern bool IsWow64Process([In] IntPtr hProcess, [Out] out bool lpSystemInfo);
//C# 64bit OS runtime check
public static bool Is64Bit()

   bool retVal; 
 
   IsWow64Process(Process.GetCurrentProcess().Handle, out retVal);
 
    return retVal; 
}

Trackbacks 0 / Comments 0

티스토리 툴바