判断CPU VC

来源:互联网 发布:mysql好学吗 编辑:程序博客网 时间:2024/06/08 20:02
C/C++ code
#include "stdafx.h"#include "windows.h"int _tmain(int argc, _TCHAR* argv[]){ SYSTEM_INFO siSysInfo; // Copy the hardware information to the SYSTEM_INFO structure. GetSystemInfo(&siSysInfo); // Display the contents of the SYSTEM_INFO structure. printf(" Processor type: %u/n", siSysInfo.dwProcessorType); return 0;}



dwProcessorType:

Name Value 
PROCESSOR_INTEL_386 386 
PROCESSOR_INTEL_486 486 
PROCESSOR_INTEL_PENTIUM 586 
PROCESSOR_INTEL_IA64 2200 
PROCESSOR_AMD_X8664 8664

原创粉丝点击