i want to get human interface device name in device manager, I tried to use wmi, the execution speed is too slow, is there any other way to grab the human interface device ?
like this
I use the following code which is faster but there is no device name
import win32com.client
wmi = win32com.client.GetObject ("winmgmts:")
for usb in wmi.InstancesOf ("win32_usbcontrollerdevice"):
print(usb.Dependent)
output
\\ANY-W10\root\cimv2:Win32_PnPEntity.DeviceID="USB\\VID_0711&PID_2213&MI_01\\6&34B27212&0&0001"
\\ANY-W10\root\cimv2:Win32_PnPEntity.DeviceID="HID\\VID_0711&PID_2213&MI_01\\7&1818A6FE&0&0000"
\\ANY-W10\root\cimv2:Win32_PnPEntity.DeviceID="USB\\VID_0711&PID_2213&MI_02\\6&34B27212&0&0002"
\\ANY-W10\root\cimv2:Win32_PnPEntity.DeviceID="HID\\VID_0711&PID_2213&MI_02\\7&2FDC3343&0&0000"