Click to See Complete Forum and Search --> : How to get USB DISK Serial Number or ID?


howwen5469
March 5th, 2008, 03:01 AM
Dear all:
I use USBView or USBDeview to find out the serial number of usb device.
Some USB disk could find Serial Number, but some USB disk can't. I check the property "iSerialNumber" and value "0x0" means disk don't have the SID. invalid SID means device-id of disk could be different on every PC. And valid SID means we can find out the same device-id of disk from every PC. If we need a security request to identify each USB-DISK to prevent ppl using unknow usbstor device. Any solution to deal with it?

some web tell me there is some problem with descriptor of usb.

http://www.lvr.com/device_errors.htm

Any idea will be appreciated.

howwen5469
March 6th, 2008, 02:29 AM
I had solve this problem, but only for disk.
Each disk partition have a 8 bits dex number to identify itself.

Mukesh_VC
March 6th, 2008, 05:59 AM
Try GetVolumeInformation() function. It retrieves information about a file system and volume Serial Number.
More Information with examples you can found on MSDN.

howwen5469
March 6th, 2008, 09:20 PM
I use wmi to get the VolumnSerialNumber, and it work. Thank your response and I will test that api.