public static int getProcessBits() { bool flag; SysApi.IsWow64Process(SysApi.GetCurrentProcess(), out flag); if ((GetSystemBits() == 0x40) && !flag) { return(0x40); } return(0x20); }
public static int getProcessBits(Process process) { bool flag; IntPtr hProcess = SysApi.OpenProcess(0x400, 0, process.Id); SysApi.IsWow64Process(hProcess, out flag); SysApi.CloseHandle(hProcess); if ((GetSystemBits() == 0x40) && !flag) { return(0x40); } return(0x20); }