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
 

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

Back
Top