views:

123

answers:

3

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  A: 

Maybe this example can help:

npinti
@npinti: In general, the info is fine, but some of it don't apply to .Net CF.
Johann Gerell
+2  A: 

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.

PaulG
@PaulG: Thanks, but that just gives me *{Microsoft Windows CE 5.2.23090}*. To map that to WM 6.5.3 I would have to know between what max and min build number in the OSVersion that the WM 6.5.3 are valid.
Johann Gerell
Yep, I'm just looking for that info, but struggling to be honest!
PaulG
Is this the missing piece of info? http://www.pocketpcfaq.com/wce/versions.htm.This should also be useful: http://channel9.msdn.com/wiki/mobiledeveloper/listofakus/
Shaihi
source for the above link: http://www.christec.co.nz/blog/archives/337
Shaihi
@Shaihi: Great info. Write an answer if you want some rep. ;-)
Johann Gerell
Thanks Shaihi. I had already added the link to that table, but it is unfortunately missing the required info.
PaulG
+2  A: 

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

Shaihi