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");
|
2016-12-14 00:47:08 +03:00
|
|
|
printf("\twProcessorArchitecture: %"PRIu16"\n", sysinfo.wProcessorArchitecture);
|
|
|
|
printf("\twReserved: %"PRIu16"\n", sysinfo.wReserved);
|
|
|
|
printf("\tdwPageSize: 0x%08"PRIX32"\n", sysinfo.dwPageSize);
|
2013-01-24 04:21:14 +04:00
|
|
|
printf("\tlpMinimumApplicationAddress: %p\n", sysinfo.lpMinimumApplicationAddress);
|
|
|
|
printf("\tlpMaximumApplicationAddress: %p\n", sysinfo.lpMaximumApplicationAddress);
|
2016-12-14 00:47:08 +03:00
|
|
|
printf("\tdwActiveProcessorMask: 0x%08"PRIXz"\n", sysinfo.dwActiveProcessorMask);
|
|
|
|
printf("\tdwNumberOfProcessors: %"PRIu32"\n", sysinfo.dwNumberOfProcessors);
|
|
|
|
printf("\tdwProcessorType: %"PRIu32"\n", sysinfo.dwProcessorType);
|
|
|
|
printf("\tdwAllocationGranularity: %"PRIu32"\n", sysinfo.dwAllocationGranularity);
|
|
|
|
printf("\twProcessorLevel: %"PRIu16"\n", sysinfo.wProcessorLevel);
|
|
|
|
printf("\twProcessorRevision: %"PRIu16"\n", sysinfo.wProcessorRevision);
|
2013-01-24 04:21:14 +04:00
|
|
|
printf("\n");
|
|
|
|
|
2013-01-24 02:46:32 +04:00
|
|
|
return 0;
|
|
|
|
}
|