.net - Windows USB Device Location -
i looking proper wmi win32 or cim class property find location of usb device. in device manager, shown below, location known "port_#0002.hub_#0009". ideas on class , property in windows api or if arbitrary value device manager gives property more cryptic. if latter, "more cryptic" class , property?
you might cross-reference port_#x.hub_#y output of usbview. i've used tool numerous times information existing usb tree.
the usbview sample available in wdk. if unfamiliar this, run - tool walks entire usb tree on system , prints out information , descriptor listings each device, locations on host controllers , hubs.
start @ refreshtree() function in sample, can follow code see how enumerates host controllers, hubs , devices.
the easiest way source sample install 7.1.0 wdk available here: http://www.microsoft.com/en-us/download/details.aspx?id=11800
Comments
Post a Comment