We have a system that uses a USB device and I wrote the code in VB6. I want the software to run when the USB device is plugged into the PC. Is there a way to command the PC to run my executable when it detects my vendor or product ID? Thank you.
Printable View
We have a system that uses a USB device and I wrote the code in VB6. I want the software to run when the USB device is plugged into the PC. Is there a way to command the PC to run my executable when it detects my vendor or product ID? Thank you.
you're in luck.
http://stackoverflow.com/questions/1...vice-connected
https://web.archive.org/web/20080506.../cc301341.aspx
It looks like you need to implement IHWEventHandler in an ActiveX DLL and then register your DLL as an AutoHandler.
https://msdn.microsoft.com/en-us/lib.../hh127452.aspx