~ubuntu-branches/ubuntu/vivid/freerdp/vivid

« back to all changes in this revision

Viewing changes to winpr/libwinpr/sysinfo/test/TestGetNativeSystemInfo.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-11-11 12:20:50 UTC
  • mfrom: (1.2.5)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20141111122050-7z628f4ab38qxad5
Tags: upstream-1.1.0~git20140921.1.440916e+dfsg1
ImportĀ upstreamĀ versionĀ 1.1.0~git20140921.1.440916e+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include <winpr/crt.h>
 
3
#include <winpr/sysinfo.h>
 
4
 
 
5
int TestGetNativeSystemInfo(int argc, char* argv[])
 
6
{
 
7
        SYSTEM_INFO sysinfo;
 
8
 
 
9
        GetNativeSystemInfo(&sysinfo);
 
10
 
 
11
        printf("SystemInfo:\n");
 
12
        printf("\twProcessorArchitecture: %d\n", sysinfo.wProcessorArchitecture);
 
13
        printf("\twReserved: %d\n", sysinfo.wReserved);
 
14
        printf("\tdwPageSize: 0x%08lX\n", sysinfo.dwPageSize);
 
15
        printf("\tlpMinimumApplicationAddress: %p\n", sysinfo.lpMinimumApplicationAddress);
 
16
        printf("\tlpMaximumApplicationAddress: %p\n", sysinfo.lpMaximumApplicationAddress);
 
17
        printf("\tdwActiveProcessorMask: 0x%08llX\n", (unsigned long long)sysinfo.dwActiveProcessorMask);
 
18
        printf("\tdwNumberOfProcessors: %ld\n", sysinfo.dwNumberOfProcessors);
 
19
        printf("\tdwProcessorType: %ld\n", sysinfo.dwProcessorType);
 
20
        printf("\tdwAllocationGranularity: %ld\n", sysinfo.dwAllocationGranularity);
 
21
        printf("\twProcessorLevel: %d\n", sysinfo.wProcessorLevel);
 
22
        printf("\twProcessorRevision: %d\n", sysinfo.wProcessorRevision);
 
23
        printf("\n");
 
24
 
 
25
        return 0;
 
26
}