detect pocket pc OS

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!
 
H

Harry Simpson

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
 
A

Alex Yakhnin [eMVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top