detect pocket pc OS

  • Thread starter Thread starter Zen
  • Start date Start date
Z

Zen

Is there a way to detect the pocket pc OS programmatically in .NET?

I need to distinguish Pocket PC 2000, Pocket PC 2002, and Pocket PC 2003.

Thanks a lot!
 
Clarification Alex,

IF it's a PPC2000 it will return a value of "PalmPC"???

Great info, i just want to verify it before i commit to notes.

Harry
 
Umm.. yes you are right.

My assumption was that it wraps a SystemParametersInfo.
Obviously it's not =), but you can call it yourself;
something like that:
==========================================================
internal const int SPI_GETPLATFORMTYPE = 257;
[DllImport("coredll.dll")]
internal static extern int SystemParametersInfo (
int uiAction,
int uiParam,
string pvParam,
int fWinIni );

if (SystemParametersInfo(SPI_GETPLATFORMTYPE,
szPlatform.Length , szPlatform, 0)!=0)
{
string strPlatform = szPlatform.Substring(0, 8);
if (strPlatform == temp)
return true;
}
======================================================

-Alex
 
Back
Top