开发者

Obtain USB device hub and port location property

开发者 https://www.devze.com 2023-03-21 19:32 出处:网络
When looking under device manager at a network adapt开发者_如何转开发er settings, the general tab displays a location property such as Port_#0004.Hub_#0005.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消