2013-01-24 02:46:32 +04:00
|
|
|
|
|
|
|
#include <winpr/crt.h>
|
|
|
|
#include <winpr/sysinfo.h>
|
|
|
|
|
|
|
|
int TestGetNativeSystemInfo(int argc, char* argv[])
|
|
|
|
{
|
2013-01-24 04:21:14 +04:00
|
|
|
SYSTEM_INFO sysinfo;
|
|
|
|
|
|
|
|
GetNativeSystemInfo(&sysinfo);
|
|
|
|
|
|
|
|
printf("SystemInfo:\n");
|
|
|
|
printf("\twProcessorArchitecture: %d\n", sysinfo.wProcessorArchitecture);
|
|
|
|
printf("\twReserved: %d\n", sysinfo.wReserved);
|
2014-05-09 02:02:02 +04:00
|
|
|
printf("\tdwPageSize: 0x%08X\n", sysinfo.dwPageSize);
|
2013-01-24 04:21:14 +04:00
|
|
|
printf("\tlpMinimumApplicationAddress: %p\n", sysinfo.lpMinimumApplicationAddress);
|
|
|
|
printf("\tlpMaximumApplicationAddress: %p\n", sysinfo.lpMaximumApplicationAddress);
|
2014-05-09 02:02:02 +04:00
|
|
|
printf("\tdwActiveProcessorMask: 0x%08X\n", (unsigned int) sysinfo.dwActiveProcessorMask);
|
|
|
|
printf("\tdwNumberOfProcessors: %d\n", sysinfo.dwNumberOfProcessors);
|
|
|
|
printf("\tdwProcessorType: %d\n", sysinfo.dwProcessorType);
|
|
|
|
printf("\tdwAllocationGranularity: %d\n", sysinfo.dwAllocationGranularity);
|
2013-01-24 04:21:14 +04:00
|
|
|
printf("\twProcessorLevel: %d\n", sysinfo.wProcessorLevel);
|
|
|
|
printf("\twProcessorRevision: %d\n", sysinfo.wProcessorRevision);
|
|
|
|
printf("\n");
|
|
|
|
|
2013-01-24 02:46:32 +04:00
|
|
|
return 0;
|
|
|
|
}
|