Derek Stone
10-19-2002, 11:06 AM
The WM_DEVICECHANGE message is sent to all windows when a device on the system is added or removed. This example is very simple, and could be used to detect the mounting and unmounting of CDs. The user could expand on this example to detect individual DBT_* events (device events).