#237 DEV_BROADCAST_* in <dbt.h>

closed-fixed
2002-12-26
2002-12-14
No

There are only single DEV_BROADCAST_USERDEFINED and
DEV_BROADCAST_PORT structures in <dbt.h>:

typedef struct _DEV_BROADCAST_PORT {
char dbcp_name[1];

typedef struct _DEV_BROADCAST_USERDEFINED {
char dbud_szName[1];

However according to MSDN, it seems there should be both an A
and a W version:

typedef struct _DEV_BROADCAST_PORT {
TCHAR dbcp_name[1];

typedef struct _DEV_BROADCAST_USERDEFINED {
char dbud_szName[1];

Note I haven't checked this in Micrsoft headers or with a real
program. I just came across this issue while reading the MSDN. I'm
not even sure it actually makes a difference.

Reference:
http://msdn.microsoft.com/library/en-us/devio/base/dev_broadcast_port_str.asp
http://msdn.microsoft.com/library/en-us/devio/base/_dev_broadcast_userdefined_str.asp

Discussion

  • Danny Smith

    Danny Smith - 2002-12-26
    • status: open --> closed-fixed
     
  • Danny Smith

    Danny Smith - 2002-12-26

    Logged In: YES
    user_id=11494

    I've added UNICODE version of
    _DEV_BROADCAST_PORT but not
    _DEV_BROADCAST_USERDEFINED.

    Danny

     

Log in to post a comment.