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:
- any serial ports being connected/disconnected
- my custom USB-to-I2C board which uses WinUSB
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:
You want RegisterDeviceNotification
and WM_DEVICECHANGE
.