This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

You can use the Windows Embedded CE GetVersionEx function to write code to check the operating system or device at run-time, and then run code specific to each platform. This technique enables you to create a single executable file with sections of code targeted to run on different versions of Windows Mobile devices — taking advantage of the feature set of each platform.


It is also possible to detect other versions of Windows, such as Microsoft Windows 95 or Microsoft Windows 2000. For an example of how to use this technique, see How to: Implement Runtime Platform and Version Checking.

See Also