Maxim
Thu Sep 08 20:02:49 CDT 2005
Get the PnP ID by SetupDi (user mode) or IoGetDeviceProperty (kernel mode).
PnP ID is based on a serial number. The format of the USB PnP IDs is
documented.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"jholden" <jholden@discussions.microsoft.com> wrote in message
news:6ADA7DC5-814E-40C8-B75C-38E0677DE488@microsoft.com...
> I am unable to get the serial number on usb flash drives. It always returns 0
> indicating it is not there. I am using DeviceIoControl with
> IOCTL_GET_DEVICE_DESCRIPTOR to get the venderID, productID, and
> ProductRevision, but the SerialNumber is always 0.
>
> Has anyone run into a similar problem?
>