I have been looking at the UsbView sample application in the latest DDK. I find it very confusing to determine how to read a specific USB device’s string descriptors.
- I would like the simplest way in which to read the iProduct string.
- I have code to determine the device path.
- The USB device may be under control by a user mode application using WinUSB at the time I want to read the string descriptors. This makes connecting to the control endpoint not possible.
- Obviously the USBView application does not need to open the control endpoint to read the string descriptors.
Do you have knowledge of a user mode sample application which is simpler than USBView what will demonstrate the capability I seek?
My goal is to be able to distinguish between three different hardware versions of a USB device.
- I don’t want to change the idProduct value because I would need to change my INF file resulting in Microsoft WHQL recertification.
- The device class is 0xFF for propriety.
- This not a consumer device and is not being sold commercially.
- I am open to other options. Perhaps I can create a custom data item in the Device Descriptor? I would need a 16 bit WORD value.
Thanks