First of all, we work with third-party software that binds to a USB device. When this USB device is disconnected and reconnected, the software cannot communicate with the device , it will stop working until the program is restarted. those. It only detects a USB device at startup.
Windows can see the device, but it goes through the full detection / installation installation procedure each time it reconnects, even if it is reconnected to the same USB port.
The difficulty here is that we cannot modify third-party software to poll the corresponding USB device after disconnecting the device.
Thus, we would like to ask if anyone has any knowledge on how to start writing a C ++ program in order to save the USB state / register, so that Windows does not reinstall the USB port when reconnecting and does not restore the saved state / register. If so, we will appreciate some recommendations in this endeavor. Naturally, we are open to other approaches to solving this problem.
source share