DBT_USERDEFINED

The DBT_USERDEFINED device message identifies a user-defined system message.

To send the DBT_USERDEFINED device message, send the WM_DEVICECHANGE message with wParam set to DBT_USERDEFINED and lParam set as described following.

pDbu = (struct _DEV_BROADCAST_USERDEFINED *)lParam;
 

Parameters

pDbu
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 arbitrary user-defined data.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in dbt.h.

See Also

System Messages Overview, System Message Messages, _DEV_BROADCAST_USERDEFINED, WM_DEVICECHANGE