Hello,
My question concerns the way to know a specific registry key that is created
by Windows the first time a USB device is plugged.
Let me explain it in detail:
When plugging for the first time my USB device (vid=xxxx, pid = xxxx) to a
given USB port: Windows creates a specific key (for example 5&206acfca&0&1)
under the directory:
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\USB\\Vid_xxxx&Pid_xxxx
What I would like to know is how this key 5&206acfca&0&1 is generated and if
it is possible to know it (with a function from Windows API) BEFORE the USB
device is plugged. I have notice that this key is the same if the same USB
device is plugged in the same USB port.
To summarize: I have 6 USB ports in my computer and I know all information
of my USB device, is it possible to know WITHOUT plugging my device each key
(?&????????&?&?) of each port ?
Thanks,
Olivier