* include/dbt.h (DEV_BROADCAST_PORT): Add UNICODE version.

Thanks to: Dimitri Papadopoulos  <dimitri_at@sourceforge.users.net>
This commit is contained in:
Danny Smith 2002-12-26 05:21:43 +00:00
parent 177a7cda75
commit 6e29a31e99
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-12-26 Danny Smith <dannysmith@users.sourceforge.net>
* include/dbt.h (DEV_BROADCAST_PORT): Add UNICODE version.
Thanks to: Dimitri Papadopoulos <dimitri_at@sourceforge.users.net>
2002-12-26 Danny Smith <dannysmith@users.sourceforge.net> 2002-12-26 Danny Smith <dannysmith@users.sourceforge.net>
* include/unknwn.h: Include windows.h and ole2.h before header * include/unknwn.h: Include windows.h and ole2.h before header

View File

@ -66,12 +66,18 @@ typedef struct _DEV_BROADCAST_OEM {
DWORD dbco_identifier; DWORD dbco_identifier;
DWORD dbco_suppfunc; DWORD dbco_suppfunc;
} DEV_BROADCAST_OEM,*PDEV_BROADCAST_OEM; } DEV_BROADCAST_OEM,*PDEV_BROADCAST_OEM;
typedef struct _DEV_BROADCAST_PORT { typedef struct _DEV_BROADCAST_PORT_A {
DWORD dbcp_size; DWORD dbcp_size;
DWORD dbcp_devicetype; DWORD dbcp_devicetype;
DWORD dbcp_reserved; DWORD dbcp_reserved;
char dbcp_name[1]; char dbcp_name[1];
} DEV_BROADCAST_PORT,*PDEV_BROADCAST_PORT; } DEV_BROADCAST_PORT_A, *PDEV_BROADCAST_PORT_A;
typedef struct _DEV_BROADCAST_PORT_W {
DWORD dbcp_size;
DWORD dbcp_devicetype;
DWORD dbcp_reserved;
wchar_t dbcp_name[1];
} DEV_BROADCAST_PORT_W, *PDEV_BROADCAST_PORT_W;
typedef struct _DEV_BROADCAST_USERDEFINED { typedef struct _DEV_BROADCAST_USERDEFINED {
struct _DEV_BROADCAST_HDR dbud_dbh; struct _DEV_BROADCAST_HDR dbud_dbh;
char dbud_szName[1]; char dbud_szName[1];
@ -84,6 +90,12 @@ typedef struct _DEV_BROADCAST_VOLUME {
WORD dbcv_flags; WORD dbcv_flags;
} DEV_BROADCAST_VOLUME,*PDEV_BROADCAST_VOLUME; } DEV_BROADCAST_VOLUME,*PDEV_BROADCAST_VOLUME;
#ifdef UNICODE
typedef DEV_BROADCAST_PORT_W DEV_BROADCAST_PORT, *PDEV_BROADCAST_PORT;
#else
typedef DEV_BROADCAST_PORT_A DEV_BROADCAST_PORT, *PDEV_BROADCAST_PORT;
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif