Retrieve device model?

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

Can you easily retrieve model information programmatically form Net CF 1?

ie Dell Axim x50V running Mobile 2003SE.

Nathan
 
[DllImport("coredll.dll")]
private static extern bool SystemParametersInfo(uint uiAction, uint uiParam,
StringBuilder pvParam, uint fWinIni);
const uint SPI_GETOEMINFO = 258;

//...

StringBuilder buffer = new StringBuilder(100);
SystemParametersInfo(SPI_GETOEMINFO, (uint)buffer.Capacity, buffer, 0);
String model = buffer.ToString();
 
Thanks.

Robert Levy said:
[DllImport("coredll.dll")]
private static extern bool SystemParametersInfo(uint uiAction, uint
uiParam, StringBuilder pvParam, uint fWinIni);
const uint SPI_GETOEMINFO = 258;

//...

StringBuilder buffer = new StringBuilder(100);
SystemParametersInfo(SPI_GETOEMINFO, (uint)buffer.Capacity, buffer, 0);
String model = buffer.ToString();

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

Nathan said:
Can you easily retrieve model information programmatically form Net CF 1?

ie Dell Axim x50V running Mobile 2003SE.

Nathan
 
Back
Top