On Thu Nov 28 21:36:31 2024 +0000, Rémi Bernon wrote:
The ID get cached quickly, they are also cached by VID:PID, not by device path. So you need to change the VID/PID of the virtual device in the tests to trigger the behavior I described again (just incrementing the VID for instance seems enough). I suspect it's probably cached somewhere in the registry, although I have not looked for it.
To avoid any confusion, could you please attach exactly the test which works differently for you?
Then, if I understand correctly, the behaviour you describe only happens with ever-chaning vid / pid? If that is the case, it is not the most interesting case in practice probably, users don't have the unlimited amount of different controllers, they probably unplug / replug the ones with the same vid / pid.