Tuesday, July 16, 2013

How to differentiate versions WinCE from Win Mobile

In the past few months, due to professionals reasons, I've been doing a lot of development for Windows embedded devices (mainly barcode scanners) so I had to come up with some adjustments to the layout of the applications in the different devices it will be running on. Some run Windows CE, others run Mobile. To detect the right type of device I wrote the following code.



This code returns a string, this string can be anything. My experience gave me this rule, that might not be a definitive rule. If you're running a WinCE device you'll get, normally, the model of the device, ex: FalconX3). And "PocketPC" or "Smartphone" in devices based on Windows Mobile. References: Ref 1 Ref 2

No comments:

Post a Comment