Reputation: 1622
Is there a mechanism in Windows that allows applications to detect when new hardware is connected to the system? In particular I would like to detect:
Upvotes: 3
Views: 2740
Reputation: 283634
You want RegisterDeviceNotification and WM_DEVICECHANGE.
RegisterDeviceNotification
WM_DEVICECHANGE
Upvotes: 4