Obtain USB device hub and port location property
When looking under device manager at a network adapt开发者_如何转开发er settings, the general
tab displays a location
property such as Port_#0004.Hub_#0005
.
How would I go about retreiving this property in either C# or C++?
You can use the SetupDiGetDeviceRegistryProperty function with SPDRP_LOCATION_INFORMATION as Property.
精彩评论