I'm writing an install program that needs to install third-party USB drivers such that they're associated with every USB port in the machine. If the Hardware Wizard installs the drivers, it makes a Registry key like this:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_0403&Pid_6001\5&640e942&0&2

The last part, 5&640e942&0&2, represents the specific port that the device was plugged into. If the user plugs it into a different USB port on the same computer, the Hardware Wizard appears again because the Registry has no record of the device on the new port. I want to make keys in the Registry for every USB port on the system, so that no matter where the user plugs in the device, Windows will find the driver and won't show the Hardware Wizard.

So, is there a way to programmatically query those port-specific strings, so that my installer can pre-load the appropriate keys into the Registry? Is there some other way to accomplish this?
Thanks!