MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2IsX64System

Function Ext2IsX64System

Ext2Mgr/enumDisk.cpp:371–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369
370
371BOOL 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
393BOOL IsVistaOrAbove()
394{

Callers 1

InitInstanceMethod · 0.85

Calls 1

Ext2IsWow64Function · 0.85

Tested by

no test coverage detected