问题
Is there an established or unofficial way of finding out if my application is running on a Windows Mobile 6.5.3 device or if it's a previous version? Managed or native doesn't matter and I don't mind interop-ing.
回答1:
Since I want some reputation ;)
Here is the information I found on the web:
How to detect Windows Mobile 6.1 (Detecting AKUs)
List of AKUs on channel9
Windows CE / Windows Mobile Versions
回答2:
Use System.Environment.OSVersion
That gets the CE version number, which would have to be translated to OS Version number with a lookup table. The best I can find at the moment is here, but its not yet up to date with the newest versions.
回答3:
Maybe this example can help:
来源:https://stackoverflow.com/questions/2904104/how-to-differ-between-windows-mobile-6-5-3-and-previous-versions-during-runtime