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
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
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...
>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