简体   繁体   中英

How do I get a device's parent in c++ on windows?

我发现SetupDiGetDeviceRegistryProperty从设备获取属性,但我SetupDiGetDeviceRegistryProperty弄明白如何获取父属性(当您在设备管理器中打开设备属性时,可以看到此属性,单击详细信息,然后从属性下拉列表中选择父级。如何从本机c ++代码访问该属性?

The predefined DEVPKEY_Device_Parent guid is the key for the Parent property. Read it with SetupDiGetDeviceInterfaceProperty().

我通过使用得到它: CM_Get_Parent发现这个参考感谢汉斯,谢谢!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM