D
dannisaurus
Hello,
I'm trying to read the vendor id from a usb key (Windows XP and
Windows Vista).
So far I've been able to fine the vendor id of each attached device by
iterating through each usb node on the system, by using a combination
of IOCTL_USB_GET_NODE_INFORMATION and
IOCTL_USB_GET_NODE_CONNECTION_INFORMATION and passing it a handle to
the hub I am interested in.
My problem is I need to trace back this usb node to a drive letter, if
it has one. I understand devices like the mouse and keyboard won't
have a drive letter but my usb key will, so I'm not sure if this is
possible or not.
I am writing a function that takes in a drive letter and returns the
vendor id of that drive. If anyone can give me any pointers or
confirm I am on the right track or otherwise, that would be great.
Thank you,
Daniel
I'm trying to read the vendor id from a usb key (Windows XP and
Windows Vista).
So far I've been able to fine the vendor id of each attached device by
iterating through each usb node on the system, by using a combination
of IOCTL_USB_GET_NODE_INFORMATION and
IOCTL_USB_GET_NODE_CONNECTION_INFORMATION and passing it a handle to
the hub I am interested in.
My problem is I need to trace back this usb node to a drive letter, if
it has one. I understand devices like the mouse and keyboard won't
have a drive letter but my usb key will, so I'm not sure if this is
possible or not.
I am writing a function that takes in a drive letter and returns the
vendor id of that drive. If anyone can give me any pointers or
confirm I am on the right track or otherwise, that would be great.
Thank you,
Daniel