Platform SDK: Hardware

DBT_USERDEFINED

The DBT_USERDEFINED device event identifies a user-defined event.

To broadcast this device event, call the BroadcastSystemMessage function with the WM_DEVICECHANGE message. Set wParam to DBT_USERDEFINED and set lParam as described following.

Parameters

wParam
Set to DBT_USERDEFINED.
lParam
Pointer to a _DEV_BROADCAST_USERDEFINED structure which describes the user-defined broadcast in progress. The dbud_szName member contains the name of the user-defined message, followed by any user-defined data.

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_USERDEFINED, WM_DEVICECHANGE