PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Device ids always present?

Hi, can anyone confirm whether or not all ppc2003 devices onwards provide a unique device id?
I will be using KernelIoControl(IOCTL_HAL_GET_DEVICEID) for 2003 devices and GetDeviceUniqueID() for WM5+.

I am just wondering if I need to cater for odd devices that don't return any unique id?
PointOfLight · 12 Dec 2007, 17:27 UTC
Unfortunately I haven't run across any documented sources yet, though I know I've seen them before, but I believe the answer to your question is two-fold. First, I don't believe all 2003 devices were required to have a unique ID. Even if they were, however, it appears that it was up to individual manufacturers whether they choose to support the call to KernelIoControl or not, so even if the device has a unique ID your call could fail.
Thanks. That's a bit annoying.