For notifications that are commonly of interest (e.g. a new disk volume has been plugged-in) Windows automatically broadcasts the WM_DEVICECHANGE
message to all top-level Windows. You do not need to register for it.
For notifications that are not delivered automatically you can use RegisterDeviceNotification
to request them.