The _DEV_BROADCAST_USERDEFINED structure contains the user-defined message and optional data associated with the DBT_USERDEFINED device message.
struct _DEV_BROADCAST_USERDEFINED {
struct _DEV_BROADCAST_HDR dbud_dbh;
char dbud_szName[1]; // ASCIIZ name
// BYTE dbud_rgbUserDefined[]; // Optional user-defined contents
};
"WidgetWare\QueryScannerShutdown"
or
"WidgetWare\Video Q39S\AdapterReady"
Because this structure contains variable length fields, use this structure tag as a template for creating a pointer to a user-defined structure. Note that the structure must not contain pointers. For example:
#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;
DBT_USERDEFINED, DEV_BROADCAST_HDR, WM_DEVICECHANGE
file: /Techref/os/win/api/win32/struc/src/str03_16.htm, 2KB, , updated: 2000/4/7 11:20, local time: 2024/12/24 05:20,
18.224.73.107:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/os/win/api/win32/struc/src/str03_16.htm"> _DEV_BROADCAST_USERDEFINED</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.