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

Re: OS Version by Peter

Peter
Thu Jul 20 05:57:59 CDT 2006

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

--
Peter Foot
Device Application Developer MVP
www.peterfoot.net | www.inthehand.com

"abelli" <aykutbelli@gmail.com> wrote in message
news:1153379853.995836.118650@m73g2000cwd.googlegroups.com...
> 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
>



Re: OS Version by abelli

abelli
Thu Jul 20 06:36:54 CDT 2006

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

Aykut