signal11 / hidapi

A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac, and Windows.
http://www.signal11.us/oss/hidapi/
Other
2.46k stars 901 forks source link

Get port number of HID device #443

Open DaoThanhLong opened 5 years ago

DaoThanhLong commented 5 years ago

Dear Sir, Thank you for your library.

I assume that I plug my HID device to USB hub. I try using SetupDiGetDeviceRegistryProperty(... , ... , SPDRP_LOCATION_INFORMATION, ...) in hid_enumerate() function but I can't get port number.

Please let me know if you have an ideas for this case. Thank you so much