Compartilhar via


Runtime Platform and Version Checking

4/19/2010

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.

Remarks

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

Reference

Conditional Compilation

Concepts

Writing Code for Multiple Devices and Versions
How to Implement Runtime Platform and Version Checking