Introduction - If you have any usage issues, please Google them yourself
This example shows how to use the Windows RegisterDeviceNotification function to receive WM_DEVICECHANGE messages when USB devices are inserted or removed from a system as outlined in application note AN_152.