判断当前系统是64位还是32位

//判断当前系统是否是32位 是32位返回TRUE 不是返回FALSE
BOOL CHideDlg::IsSystem32()
{
    SYSTEM_INFO si = { 0 };
    GetNativeSystemInfo(&si);
    if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 ||
        si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_IA64)
    {
        return FALSE;
    }
    else
    {
        return TRUE;
    }
}

 

posted @ 2020-04-25 15:44  自己的小白  阅读(723)  评论(0编辑  收藏  举报