Hey.

Using C# on either a Pocket PC or CE app.
I need to be able to detect which one the app is running in order to
organise its layout.

I'm kind of new to this sort of programming so sorry if the answer is
obvious.
I did google around to try and find it before posting.

Cheers,
Steve

Re: Detect OS of Device by Nino

Nino
Wed Mar 01 22:33:43 CST 2006

Steven Nagy wrote:
> Hey.
>
> Using C# on either a Pocket PC or CE app.
> I need to be able to detect which one the app is running in order to
> organise its layout.
>
> I'm kind of new to this sort of programming so sorry if the answer is
> obvious.
> I did google around to try and find it before posting.
>
> Cheers,
> Steve
>

Steve,

Here's a start:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/850f80ed7160d420/7a051be7ee0936e5?q=get+platform+version&rnum=5#7a051be7ee0936e5

You'll also want to look into SPI_GETPLATFORMTYPE (you'll need to P/invoke)

--
Nino Benvenuti
http://nino.net/blog