Windows sends a (rather, a few) WM_DEVICECHANGE message to all top level windows when *anything* in the device list changes. You can also register for notifications for a specific device class, usign RegisterDeviceNotification() Note: There's a bug in Win98 that makes UnregisterDeviceNotification crash.
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen