Platform SDK: Hardware

DBT_DEVICEREMOVEPENDING

The system broadcasts the DBT_DEVICEREMOVEPENDING device event when the device driver stack has been removed and the device is no longer available for use.

To broadcast this device event, the system uses the WM_DEVICECHANGE message with wParam set to DBT_DEVICEREMOVEPENDING and lParam set as described following.

Parameters

wParam
Set to DBT_DEVICEREMOVEPENDING.
lParam
Pointer to a structure identifying the device. To determine the structure type, treat the structure as a DEV_BROADCAST_HDR structure and check its dbch_devicetype member.

Return Values

Return TRUE.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Dbt.h.

See Also

Device Management Overview, Device Management Events, DEV_BROADCAST_HDR, WM_DEVICECHANGE