Share via


Runtime Platform and Version Checking

Send Feedback

You can use the Windows 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-based 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

Writing Code for Multiple Devices and Versions | Conditional Compilation | How to: Implement Runtime Platform and Version Checking

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.