Detect device model number

  • Thread starter Thread starter GD
  • Start date Start date
It is possible to retrieve OEM specific identifier by P/Invoking
SystemParamtersInfo with the SPI_GETOEMINFO constant. However the format of
this text is OEM specific and may not return a nicely formatted model number
as you might expect. If you search the archives of this group (e.g. through
google groups) you should find example code for this API method.

Peter
 
Hi Peter,

You suggestion works great. Thanks very much.

GD

The following is the code in case someone is interested:

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

SystemParametersInfo(258, 200, strDeviceID, 0);
 
Back
Top