This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Detecting device type


Detecting device type

Postby drgoldie » 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
drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby mm40 » Jul 4, 2007 @ 3:33pm

I'm having the same problem, on the T-Mobile Dash it reports HTC. Why the hell would they do this?

One idea I had to get around this is to look at the size or date of a specific windows DLL file, since they must compile a windows kernel for each device there must be something about it that is unique.
User avatar
mm40
pm Member
 
Posts: 135
Joined: Feb 21, 2003 @ 9:11pm


Postby Dan East » Jul 5, 2007 @ 5:03am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron