Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Device Type ID

0 views
Skip to first unread message

Kramer@discussions.microsoft.com Ed Kramer

unread,
May 21, 2007, 1:34:01 PM5/21/07
to
Greetings guys,

In Mobile 5.0 I've been trying to get hold of a unique identifier for the
device type. I'm not looking for a unique way of identifying any one
individual pocket PC running windows mobile 5.0, I'm looking for a way to
tell one device type from another device type. So if I have two Treo
700W1.10-VZW's i want to get the same number from both of them. But if I have
a Ipaq model I'll get something different back from that one.

The information usually in the 'about' screen on the device would be
adequate though not quite what I'm looking for.

I've seen a number of different posts on here talking about unique ID's and
such. I've tried using KernelIoControl ( though apparently that's a dead end
in Mobile 5.0 ), and I've tried using GetDeviceUniqueId to get the Device ID
made up of the PlatformID and PresetID.

However, I'm not sure if the PlatformID is what I'm looking for or not. Can
anyone elaborate? Also, is there a list or table around somewhere that has
the values this can be so I can verify the device type that I'm getting back?

Thanks for the assistance
Ed

dbgrick

unread,
May 21, 2007, 2:29:01 PM5/21/07
to
Ed,
You can get the device name using

SystemParametersInfo(SPI_GETOEMINFO, dwSize, szDeviceName, 0);

This name is provided fromt he manufacturer and should be the same for all
like devices.

Rick D.
Contractor

The PocketTV Team

unread,
May 21, 2007, 4:41:07 PM5/21/07
to
unfortunately SPI_GETOEMINFO cannot be trusted.

in some cases, different devices from the same manufacturer use the same
SPI_GETOEMINFO string, and in other cases (e.g. O2 XDA Zinc), different
strings are used for the same device (depending on the ROM version).


"dbgrick" <dbg...@discussions.microsoft.com> wrote in message
news:83D2076E-8210-4EE7...@microsoft.com...

Ed Kramer

unread,
Jun 19, 2007, 5:20:21 PM6/19/07
to
What would you recomend? Basically I need a way to differentiate one device
from another device.

r_z_...@pen_fact.com

unread,
Jun 20, 2007, 5:43:18 PM6/20/07
to
On Tue, 19 Jun 2007 14:20:21 -0700, Ed Kramer
<EdKr...@discussions.microsoft.com> wrote:

>What would you recomend? Basically I need a way to differentiate one device
>from another device.

If you tell us why you need/want to differentiate, we can probably
find an appropriate method.

If you are trying to provide run-time decisions about which features
to support and/or methods to use, more direct checks would probably
work better. I suggest checking a current thread called "Detection of
hardware platform under ce" in this newsgroup.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

0 new messages