判断当前系统是否为64位

BOOL Is64bitSystem()

{

SYSTEM_INFO si;

GetNativeSystemInfo(&si);

if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 ||   

si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_IA64 )

{

return TRUE;

}

else

{

return FALSE;

}

}

你可能感兴趣的:(判断当前系统是否为64位)