Finding the Serial number of USB Disk.

Hi all,
I am trying to find out the serial number of a disk
connected via USB. I Used IOCTL_SCSI_PASS_THROUGH
(inquiry + modepage 80h), IOCTL_SCSI_INQUIRY_DATA,
IOCTL_SCSI_GET_CAPABILITIES

All of the above ioctls return Vendor Id and Product
Id but not serial number.

Please help!

Regards,
Rohit


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

We are doing exactly that, but using a simpler method: processing
WM_DEVICECHANGE, then when getting a DBT_DEVTYP_VOLUME notification,
calling the GetVolumeInformation(…) Win32 API to get the volume serial
#, among other things.
I’m pretty sure to get the volume notification you do not need to
register for it, but we register for USB I/F notification as well in the
same app because we need to know when any USB device is coming or going.

Tom E.