How to get the serial number of USB device ?

  • Thread starter Thread starter Nikhil V S
  • Start date Start date
N

Nikhil V S

Guest
I need to find out the serial number of usb device in file system driver

I created a function using IOCTL_STORAGE_QUERY_PROPERTY to query the serial number .but it fails for some devices.

Is there any possible way to find the serial number in file system driver.

I found some other IOCTL in msdn.

IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION

IOCTL_USB_GET_NODE_INFORMATION

IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER

Can I use any one of them to find the serial number in file system driver ? Is there any code sample available?

or any other one ?

Please help

Continue reading...
 
Back
Top