Hi All,
i want to get the serial number from a usb Flash Memory in a driver program
i use the IOCTL_STORAGE_QUERY_PROPERTY and got a STORAGE_DEVICE_DESCRIPTOR
but i find that the SerialNumberOffset is 0 ???
i don’t know how to get the serial number from a usb device?
can you help me?
Thanks
You need to talk to the USBHUB PDO to get this information, not the disk PDO
that USBSTOR creates. Once you have the PDO you need to send a get
descriptor URB to get the serial number string index and then send a string
descriptor request with the index.
Of course, getting the PDO is going to be your major issue. And, just to
mention, not all USB devices have serial numbers (and the ones that do
aren’t necessarily unique!). So why do you think that you need it in the
first place?
This seems more like an NTDEV question than an NTFSD one…
-scott
–
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
wrote in message news:xxxxx@ntfsd…
> Hi All,
>
> i want to get the serial number from a usb Flash Memory in a driver
> program
> i use the IOCTL_STORAGE_QUERY_PROPERTY and got a STORAGE_DEVICE_DESCRIPTOR
> but i find that the SerialNumberOffset is 0 ???
> i don’t know how to get the serial number from a usb device?
> can you help me?
>
> Thanks
>
>
>
thank you very much!
I really appreciate it!