Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LPCSTR getArchitecture()
- {
- SYSTEM_INFO sysInfo;
- GetSystemInfo(&sysInfo);
- LPCSTR architecture;
- switch (sysInfo.wProcessorArchitecture)
- {
- case PROCESSOR_ARCHITECTURE_INTEL :
- architecture = "Intel x86";
- break;
- case PROCESSOR_ARCHITECTURE_IA64 :
- architecture = "Intel x64";
- break;
- case PROCESSOR_ARCHITECTURE_AMD64 :
- architecture = "AMD x64";
- break;
- case PROCESSOR_AMD_X8664:
- architecture = "AMD x86";
- break;
- default:
- architecture = "Unknow";
- break;
- }
- return architecture;
- }
- UINT const getCountCernels()
- {
- SYSTEM_INFO sysInfo;
- GetSystemInfo(&sysInfo);
- return sysInfo.dwNumberOfProcessors;
- }
Add Comment
Please, Sign In to add comment