DBT_DEVICEREMOVECOMPLETE
The operating
system sends the DBT_DEVICEREMOVECOMPLETE device message when a device has been
removed.
To send the
DBT_DEVICEREMOVECOMPLETE device message, the operating system sends the WM_DEVICECHANGE
dwData = (DWORD) lParam;
Parameters
dwData
Address of a DEV_BROADCAST_HDR
Return Values
Return TRUE.
Remarks
The operating
system may send a DBT_DEVICEREMOVECOMPLETE message without sending
corresponding DBT_DEVICEQUERYREMOVE and DBT_DEVICEREMOVEPENDING messages. In
such cases, the applications and drivers must recover from the loss of the
device as best they can.
See Also