| 369 | |
| 370 | |
| 371 | BOOL Ext2IsX64System() |
| 372 | { |
| 373 | SYSTEM_INFO sysInfo; |
| 374 | fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress( |
| 375 | GetModuleHandle("kernel32"), "IsWow64Process"); |
| 376 | |
| 377 | fnGetNativeSystemInfo = (LPFN_GETNATIVESYSINFO)GetProcAddress( |
| 378 | GetModuleHandle("kernel32"), "GetNativeSystemInfo"); |
| 379 | |
| 380 | if (fnGetNativeSystemInfo) { |
| 381 | fnGetNativeSystemInfo(&sysInfo); |
| 382 | |
| 383 | if (sysInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 && |
| 384 | Ext2IsWow64()) { |
| 385 | g_isWow64 = TRUE; |
| 386 | return TRUE; |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | return FALSE; |
| 391 | } |
| 392 | |
| 393 | BOOL IsVistaOrAbove() |
| 394 | { |
no test coverage detected