OSVERSIONINFO osInfo;
GetVersionEx(&osInfo);
printf("os: major=%d,minor=%d,buildno=%d,platformId=%d,CSDVer=%ls\n",
osInfo.dwMajorVersion,osInfo.dwMinorVersion,
osInfo.dwBuildNumber,osInfo.dwPlatformId,osInfo.szCSDVersion);
//work os: major=6,minor=0,buildno=3122,platformId=3,CSDVer=
//模拟器os: major=6,minor=0,buildno=0,platformId=3,CSDVer=
TCHAR szPlat[256];
SystemParametersInfo(SPI_GETPLATFORMTYPE,sizeof(szPlat),szPlat,0);
printf("szPlatTyep = %ls\n",szPlat);//szPlatTyep = DeviceEmulator
SystemParametersInfo(SPI_GETOEMINFO,sizeof(szPlat),szPlat,0);
printf("szOEM = %ls\n",szPlat);//szOEM = Microsoft DeviceEmulator
SystemParametersInfo(SPI_GETPROJECTNAME,sizeof(szPlat),szPlat,0);
printf("szProcName = %ls\n",szPlat);
//wrok:szProcName = Unknown WinCE Project
//模拟器:szProcName = CEBase
SystemParametersInfo(SPI_GETPLATFORMNAME,sizeof(szPlat),szPlat,0);
printf("szPlatName = %ls\n",szPlat);//szPlatName = DeviceEmulator
SystemParametersInfo(SPI_GETBOOTMENAME,sizeof(szPlat),szPlat,0);
printf("szBootName = %ls\n",szPlat);//szBootName = DeviceEmulator
SystemParametersInfo(SPI_GETPLATFORMMANUFACTURER,sizeof(szPlat),szPlat,0);
printf("szPlatManu = %ls\n",szPlat);//szPlatManu = DeviceEmulator
SystemParametersInfo(SPI_GETUUID,sizeof(szPlat),szPlat,0);
printf("szUUID = %ls\n",szPlat);//szUUID = DeviceEmulator
SystemParametersInfo(SPI_GETGUIDPATTERN,sizeof(szPlat),szPlat,0);
printf("szGuid = %ls\n",szPlat);//szGuid =