Detecting device type
Posted: Apr 3, 2007 @ 10:44am
I need to reliably detect a device type such as MotoQ, X50v, MDA Pro, etc.
I am happy detecting only the device series not the branding. So HTC Tornado is enough (actually I'd prefer this over i-mate SP5 or O2 XDA IQ, etc.).
The problem is that using
SystemParametersInfo(SPI_GETOEMINFO, 64, &wszInfoString, 0);
is not reliable since many vendors just write crap in there. E.g. the i-mate SP5 reports "i-mate SP5", but both the Excalibur as well as the Wizard just report "HTC".
So I added screen resolution and platform (PocketPC, Smartphone) but this does also not result in reliable detection.
Any better ideas?
thanks,
Daniel
I am happy detecting only the device series not the branding. So HTC Tornado is enough (actually I'd prefer this over i-mate SP5 or O2 XDA IQ, etc.).
The problem is that using
SystemParametersInfo(SPI_GETOEMINFO, 64, &wszInfoString, 0);
is not reliable since many vendors just write crap in there. E.g. the i-mate SP5 reports "i-mate SP5", but both the Excalibur as well as the Wizard just report "HTC".
So I added screen resolution and platform (PocketPC, Smartphone) but this does also not result in reliable detection.
Any better ideas?
thanks,
Daniel