OS Version

  • Thread starter Thread starter abelli
  • Start date Start date
A

abelli

Hi,
I'm trying to get the OS information from device in my application. I
try to use System.Environment class but both Win CE 4.2 and Pocket PC
2003 SE returns "WinCE 4.20.0"
Is there any way to find out if the OS is Pocket PC 2003 or Win CE?
Thanks
 
Pocket PC 2003 Second Edition should return 4.21 (original Pocket PC 2003
was 4.20)

However you can P/Invoke SystemParametersInfo with the constant
SPI_GETPLATFORMTYPE to return a platform name e.g. PocketPC, Smartphone or
other for a custom CE device.
See this How-To:-
http://msdn2.microsoft.com/en-us/library/ms229660.aspx

Peter
 
Hi Peter,
This is exactly what i am looking for. Thank you very much.

Aykut
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top