#include "stdafx.h"
#include <windows.h>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
SYSTEM_INFO sysInfo;
GetNativeSystemInfo(&sysInfo);
if (sysInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
{
cout<<"64"<<endl;
}
else
{
cout<<"32"<<endl;
}
getchar();
return 0;
}
简单判断系统是否是Windows 64位
最新推荐文章于 2022-09-03 19:11:06 发布