madwizard-thomas / winusbnet

WinUSB .NET wrapper library
Other
142 stars 64 forks source link

Exception Listing USB Hub Devices #33

Open JonathanGVC opened 3 years ago

JonathanGVC commented 3 years ago

In another issue in the list I saw that using "{A5DCBF10-6530-11D2-901F-00C04FB951ED}" as the GUID lists all devices, however it only listed composite devices when I googled, whereas I need a hub.

I tried the equivelent hub GUID "{F18A0E88-C30C-11D0-8815-00A0C906BED8}" and it threw the exception below:

image

For reference I do have 2 hubs plugged in, and both hubs have a device plugged into them.

JonathanGVC commented 3 years ago

I pulled the lib and it was the regex doing it, the device didn't have an underscore between the prefixes and the ID themselves. i.e. PID8013 instead of PID_8013.