#include <windows.h>
#include <iostream>
#pragma comment(lib, "user32.lib")
using std::cout;
using std::cin;
int main() {
SYSTEM_INFO siSysInfo;
// Copy the hardware information to the SYSTEM_INFO structure.
GetSystemInfo(&siSysInfo);
// Display the contents of the SYSTEM_INFO structure.
cout << "Hardware information: n";
cout << " OEM ID: " << siSysInfo.dwOemId << "n";
cout << " Number of processors: " << siSysInfo.dwNumberOfProcessors << "n";
cout << " Page size: " << siSysInfo.dwPageSize << "n";
cout << " Processor type: " << siSysInfo.dwProcessorType << "n";
cout << " Minimum application address:" << siSysInfo.lpMinimumApplicationAddress << "n";
cout << " Maximum application address: " << siSysInfo.lpMaximumApplicationAddress << "n";
cout << " Active processor mask: " << siSysInfo.dwActiveProcessorMask << "n";
cin.get();
return 0;
}