.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?

image: http://i.stack.imgur.com/7miwp.png

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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -