[DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsWow64Process([In] IntPtr hProcess, [Out] out bool lpSystemInfo);
[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;
}
public static bool Is64Bit()
{
bool retVal;
IsWow64Process(Process.GetCurrentProcess().Handle, out retVal);
return retVal;
}
'프로그램 경험 > .Net' 카테고리의 다른 글
[C#] StreamReader 한글 깨짐 문제 (5) | 2012.08.13 |
---|---|
[VisualStudio] 디자이너를 로드하기 전에 데이터가 손실되지 않게 하려면 다음 오류를 해결해야 합니다. (2) | 2012.01.28 |
[ASP.NET] IIS 메타베이스에 액세스하지 못했습니다 (0) | 2011.05.31 |
[Visual Studio] Visual Studio에서 예외가 발생했습니다. 확장이 원인일 수 있습니다 (8) | 2011.01.13 |
[Visual Studio] 바탕색상 및 글꼴 (0) | 2010.12.13 |