Reputation: 962
I have a custom HID-compliant USB device. I would like to set up Windows to launch an application when this device is plugged in. Is this possible through a configuration setting? Or do I need to write an application (for example, one that resides in the system tray on Windows startup) that detects when the device is inserted?
I know that my Canon camera and my Nokia phone can start applications or AutoPlay when they are plugged in, but they are not HID devices.
Upvotes: 3
Views: 912
Reputation: 35653
You should be able to achieve this by monitoring for a WMI Win32_DeviceChangeEvent, or RegisterDeviceNotification.
Upvotes: 3