问题
How do I import Device Manager-like details of devices in my C++ code?
I have tried Setupapi routines, but these do not give me Device Manager-like details of the device property value.
回答1:
Something called Windows Management Instrumentation (WMI) can be used for this.
来源:https://stackoverflow.com/questions/29231470/how-do-i-access-information-in-windows-device-manager-in-c