title: How might I retrieve the port number of a USB device that is connected to a USB port?
body: <p>How might I retrieve the port number of a USB device that is connected to a USB port, using VB6?
  I can already get the USB Device name, let's say:
  <code>\\?\USB#Vid_0801&amp;Pid_2250#7&amp;91e2848&amp;0&amp;1#{4d36e978-e325-11ce-bfc1-08002be10318}</code> </p>
  
  <p>How do I automatically detect what port number is assigned to it?
  I am making a program that will automatically determine the port number of a specific device attached to any of the USB port and start communicating on it automatically.</p>