PLATFORMVERSION (Compact 2013)
3/28/2014
This structure contains information about the version of the OEM OS design.
Syntax
typedef struct tagPLATFORMVERSION {
DWORD dwMajor;
DWORD dwMinor;
} PLATFORMVERSION, *PPLATFORMVERSION;
Members
- dwMajor
Indicates the major version number of the OEM OS design.
- dwMinor
Indicates the minor version number of the OEM OS design.
Example
The following code example demonstrates how to get the OS version.
#include "c:\wince800\public\common\oak\inc\pwinuser.h" // definition of PLATFORMVERSION
void TestGetPlatformVersion()
{
PLATFORMVERSION pv = {0};
if ( SystemParametersInfo( SPI_GETPLATFORMVERSION, sizeof(pv), &pv, FALSE ) == true )
{
// pv will contain the platform version information in pv.dwMajor & pv.dwMinor
}
else
{
DWORD err = GetLastError(); // Call GetLastError() to get the reason SystemParametersInfo() failed.
}
}
Requirements
Header |
pwinuser.h |