Skip to content

Latest commit

 

History

History
96 lines (74 loc) · 2.95 KB

ns-dbt-_dev_broadcast_userdefined.md

File metadata and controls

96 lines (74 loc) · 2.95 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:dbt._DEV_BROADCAST_USERDEFINED
_DEV_BROADCAST_USERDEFINED (dbt.h)
Contains the user-defined event and optional data associated with the DBT_USERDEFINED device event.
_DEV_BROADCAST_USERDEFINED
_DEV_BROADCAST_USERDEFINED structure
_win32__dev_broadcast_userdefined_str
base._dev_broadcast_userdefined_str
dbt/_DEV_BROADCAST_USERDEFINED
base\_dev_broadcast_userdefined_str.htm
base
e90fbce2-cae7-4e78-b6f5-82b200390cb7
12/05/2018
_DEV_BROADCAST_USERDEFINED, _DEV_BROADCAST_USERDEFINED structure, _win32__dev_broadcast_userdefined_str, base._dev_broadcast_userdefined_str, dbt/_DEV_BROADCAST_USERDEFINED
dbt.h
Windows
Windows XP
Windows Server 2003
Windows
19H1
_DEV_BROADCAST_USERDEFINED
dbt/_DEV_BROADCAST_USERDEFINED
c++
APIRef
kbSyntax
HeaderDef
Dbt.h
_DEV_BROADCAST_USERDEFINED

_DEV_BROADCAST_USERDEFINED structure

-description

Contains the user-defined event and optional data associated with the DBT_USERDEFINED device event.

-struct-fields

-field dbud_dbh

Information about the device affected by a WM_DEVICECHANGE message as specified by the DEV_BROADCAST_HDR structure. Because _DEV_BROADCAST_USERDEFINED is variable length, the dbch_size member of the dbud_dbh structure must be the size in bytes of the entire structure, including the variable length portion.

-field dbud_szName

A pointer to a case-sensitive, null-terminated string that names the message. The string must consist of the vendor name, a backslash, followed by arbitrary user-defined null-terminated text.

-remarks

Because this structure contains variable length fields, use it as a template for creating a pointer to a user-defined structure. Note that the structure must not contain pointers. The following example shows such a user-defined structure.

#define NAME_LENGTH 32 
#define USER_LENGTH 50 
 
typedef struct tagWIDGET_WARE_DEV_BROADCAST_USERDEFINED
{
    struct _DEV_BROADCAST_HDR DBHeader; 
    char   szName[NAME_LENGTH];
    BYTE   UserDefined[USER_LENGTH]; 
} WIDGET_WARE_DEV_BROADCAST_USERDEFINED;

-see-also

DBT_USERDEFINED

DEV_BROADCAST_HDR

WM_DEVICECHANGE