Mapping a USB Drive to a USB Hub and Port in Windows

What is the best way to determine where all the USB drives are plugged in? Ideally, I would like to recursively start at the root hub and continue down the tree to find the USB drives and which port they are connected to (which physical USB slot).

0


source to share


1 answer


In my case, it's a combination of kernel code and user mode to make life easier, but I'm sure you can only do all of this in user mode using the SetupDiXXX Api's.
I think the USBView app takes a different approach. You can see an example implementation of the USBView utility (C #) here
In general, Google for USBView and you will find a lot of relevant information.



0


source







All Articles