Share via


Implementation of the SPI_GETPLATFORMVERSION IOCTL

In Windows CE .NET 4.2, you need to implement the SPI_GETPLATFORMVERSION IOCTL in the OAL. SPI_GETPLATFORMVERSION is used in conjunction with the SPI_GETPLATFORMTYPE IOCTL to assign a version number to an OEM platform. For more information about SPI_GETPLATFORMTYPE, see SystemParametersInfo.

The following code example shows the definition for the structure or array of structures:

typedef struct tagPLATFORMVERSION {
    DWORD dwMajor;
    DWORD dwMinor;
} PLATFORMVERSION, *PPLATFORMVERSION;

For each string returned as part of the SPI_GETPLATFORMTYPE IOCTL, an equivalent version structure must also exist.

In Windows CE .NET 4.2, when you install the Standard SDK as part of your configuration, you return the following platform strings:

const WCHAR HALPlatformStr[] = "My OEM Platform\SSDK\0";
const PLATFORMVERSION HALPlatformVer[TOTALPLATFORMS] = {{n, n}, {4, 2}};

Your platform name is always first, and then followed by SSDK if the Standard SDK was installed as part of your platform.

For more information about the Standard SDK, see Standard SDK for Windows CE.

See Also

How to Migrate a Board Support Package to Windows CE .NET 4.2

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.