Wednesday, 18 September 2013

Need to retrieve product descriptor string from USB device on WinXP

Need to retrieve product descriptor string from USB device on WinXP

I have used the code in this post to successfully read the USB product
string in the descriptor for a RNDIS device on Windows 7. I really need
the string from the original USB descriptor and not the one supplied in
the driver INF file. For example, I need to make a user-mode application
able to determine two slightly different products which are identical in
every way except the iProduct - indexed string descriptor. I know that
different products should have different idProduct fields but I have no
control over this.
However, I also need this to work on Windows XP, which apparently does not
support 'DEVPKEY_Device_BusReportedDeviceDesc'.
I believe it may be possible on XP by starting with the usbview project in
the driver development kit, but that looks like tons of work compared to
the relatively simple code referenced above. Does anybody know the easiest
way to get the product string from the USB device's descriptor for a
device which already has a driver installed which works on Windows XP?
The application is unmanaged C++.

No comments:

Post a Comment