please dont rip this site Prev Next

_DEV_BROADCAST_USERDEFINED info  Overview  Group


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
};

Members

dbud_dbh
Information about the device affected by a WM_DEVICECHANGE message as specified by the DEV_BROADCAST_HDR structure. Because the _DEV_BROADCAST_USERDEFINED structure is variable length, dbud_dbh.dbch_size must be the size in bytes of the entire structure, including the variable length part.
dbud_szName
A case-sensitive, null-terminated string that names the message. The name must consist of the vendor name, a backslash, followed by arbitrary user-defined null-terminated text. For example:
"WidgetWare\QueryScannerShutdown" 

or

"WidgetWare\Video Q39S\AdapterReady"

 
dbud_rgbUserDefined
Optional user-defined information.

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;

See Also

DBT_USERDEFINED, DEV_BROADCAST_HDR, WM_DEVICECHANGE 

See also:


file: /Techref/os/win/api/win32/struc/src/str03_16.htm, 2KB, , updated: 2000/4/7 11:20, local time: 2012/2/10 15:45,
TOP NEW HELP FIND: 
38.107.179.233:LOG IN

 ©2012 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?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/tecHREF/os/win/api/win32/struc/src/str03_16.htm"> _DEV_BROADCAST_USERDEFINED</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 
Check out Seiichi Inoue San's BEAUTIFUL
PIC 16 series Microcontroller Instruction Set Reference
. And his Hobby Electronics web site at http://hobby_elec.piclist.com.
 

Robotics nuts!

Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.
The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .