Good Day!

1.)I was just wondering if anyone knows how to get the Device name or
the model of the pocket pc(im not sure what its called) programmatically in
C#.
2.) My pocket pc is a hp ipaq.. im wondering if anyone knows how to detect
that my pocket pc is a "ipaq"?

Re: Device name by Peter

Peter
Tue May 23 07:11:08 CDT 2006

The system has an OEM specific identifier which can help to identify the
unit. There is no standard to define what this contains so it may or may not
contain the manufacturer or model number. You can access this via the
SystemParametersInfo API method (P/Invoke from C#). Pass SPI_GETOEMINFO into
the uiAction argument, the size of your buffer into uiParam and a buffer
(either allocated byte[] or StringBuilder) for pvParam. On successful
completion the oem string (unicode) is returned in this buffer. The
winuser.h header in the SDK contains the values of the various constants.

Peter

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

"Rain" <Rain@discussions.microsoft.com> wrote in message
news:17CD5666-B794-455A-958E-AB794AA88BD0@microsoft.com...
> Good Day!
>
> 1.)I was just wondering if anyone knows how to get the Device name
> or
> the model of the pocket pc(im not sure what its called) programmatically
> in
> C#.
> 2.) My pocket pc is a hp ipaq.. im wondering if anyone knows how to detect
> that my pocket pc is a "ipaq"?
>



Re: Device name by Rain

Rain
Wed May 24 10:03:02 CDT 2006

Thanks peter it was really helpful, i was wondering if you can help me with
this. Its simple but i cant get it to work. I read about the iPAQSetWLANRadio
in your article in your site ad was very useful, one question though, the
counterpart of it which is iPAQGetWLANRadioSuccess(i think) always return
true in my application even if i changed the parameter to 1 or 0 (true or
false). Can i ask for a sample of how to use this iPAQGetWLANRadioSuccess in
C#? I would APpreciated it so much, THanksi in advance and sorry for the
bother mr. Peter Foot. Thanks again!

"Peter Foot [MVP]" wrote:

> The system has an OEM specific identifier which can help to identify the
> unit. There is no standard to define what this contains so it may or may not
> contain the manufacturer or model number. You can access this via the
> SystemParametersInfo API method (P/Invoke from C#). Pass SPI_GETOEMINFO into
> the uiAction argument, the size of your buffer into uiParam and a buffer
> (either allocated byte[] or StringBuilder) for pvParam. On successful
> completion the oem string (unicode) is returned in this buffer. The
> winuser.h header in the SDK contains the values of the various constants.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.peterfoot.net | www.inthehand.com
>
> "Rain" <Rain@discussions.microsoft.com> wrote in message
> news:17CD5666-B794-455A-958E-AB794AA88BD0@microsoft.com...
> > Good Day!
> >
> > 1.)I was just wondering if anyone knows how to get the Device name
> > or
> > the model of the pocket pc(im not sure what its called) programmatically
> > in
> > C#.
> > 2.) My pocket pc is a hp ipaq.. im wondering if anyone knows how to detect
> > that my pocket pc is a "ipaq"?
> >
>
>
>