Identify your mobile device manufacturer in C #

I write .NET CF code that sometimes runs on Motorola devices and in other cases on Intermec devices. Depending on which device I work on, I want to use the manufacturer libraries for what I do. Is there an easy way in .NET CF to identify the hardware manufacturer (and ideally models)?

+4
source share
1 answer

Try using the SystemParametersInfoString method from coredll.dll.

StringBuilder sb = new StringBuilder(256); if (SystemParametersInfoString(SPI_GETPLATFORMTYPE, sb.Capacity, sb, 0) != 0) { String name = sb.ToString(); } 

Change SPI_GETPLATFORMTYPE to SPI_GETOEMINFO or play with it. you could have more details ..

+2
source

All Articles