Detect device type?

  • Thread starter Thread starter Tomer
  • Start date Start date
T

Tomer

Hi,

I wish to develop an application that would suite both pocket pc and windows
ce devices, with the same solution.
I have different sections of code for each device, and I need to determine
in runtime which code to run.

How can detect if the device that is running my application is a PPC or WCE?

Tomer.
 
You can call SystemParametersInfo with SPI_GETPLATFORMTYPE which will return
"PocketPC" on a Pocket PC and something different for a generic CE unit.
See OpenNETCF.EnvironmentEx.PlatformName (or the source code) for an
implementation - www.opennetcf.org/sdf/

Peter
 
Thanks!

Tomer.


Peter Foot said:
You can call SystemParametersInfo with SPI_GETPLATFORMTYPE which will
return "PocketPC" on a Pocket PC and something different for a generic CE
unit.
See OpenNETCF.EnvironmentEx.PlatformName (or the source code) for an
implementation - www.opennetcf.org/sdf/

Peter
 
Back
Top