Reputation: 63
As the title, I want to get iManufacturer number of a webcam, how can I do?
If I install special driver of libusb module to get iManufacturer number, I can get the number, but the webcam became a disk on my computer, and I can not use it as a camera. How can I do without installing the special driver of libusb module?
Upvotes: 0
Views: 645
Reputation: 460
The iManufacturer number is contained in the usb device descriptor. You can get the device descriptor in user mode by using DeviceIoControl with IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX. Take a look at the usbview microsoft example, which does this in its enum code. http://code.msdn.microsoft.com/windowshardware/USBView-sample-application-e3241039
Upvotes: 1