Serial number on usb flash drive.

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?

Regards,
Gautam

If you are trying to get the usb disk serial number your best bet is to use
scsi passthrough to send an inquiry request for inq page 80.

Mark Roddy

On Mon, Dec 29, 2008 at 11:18 PM, Gautam wrote:

>
>
> 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?
>
> Regards,
> Gautam
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Gautam wrote:

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.

This exact question, with the exact same wording and the exact same
spelling errors, was posted to one of the newsgroups in September,
2005. Did you just cut-and-paste the entire question here? Were you
not satisfied with Maxim’s answer?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.