1

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

https://www.google.com/url?sa=i&url=https%3A%2F%2Fm.majorgeeks.com%2Fcontent%2Fpage%2Fhid_compliant_touch_screen_driver_is_missing.html&psig=AOvVaw2BnzhnNqdwMeEz-A4oltYI&ust=1665723047900000&source=images&cd=vfe&ved=0CAwQjRxqFwoTCJjFtYa03PoCFQAAAAAdAAAAABAO

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"
acs123
  • 49
  • 4

0 Answers0