OSDN Git Service

* include/dbt.h (DEV_BROADCAST_PORT): Add UNICODE version.
authordannysmith <dannysmith>
Thu, 26 Dec 2002 05:21:43 +0000 (05:21 +0000)
committerdannysmith <dannysmith>
Thu, 26 Dec 2002 05:21:43 +0000 (05:21 +0000)
Thanks to: Dimitri Papadopoulos  <dimitri_at@sourceforge.users.net>

winsup/w32api/ChangeLog
winsup/w32api/include/dbt.h

index c5d5353..9b55ef0 100644 (file)
@@ -1,5 +1,10 @@
 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>
+
        * include/unknwn.h: Include windows.h and ole2.h before header
        guard to avoid circular inclusion of COM headers.
 
index f854b84..e79e431 100644 (file)
@@ -66,12 +66,18 @@ typedef struct _DEV_BROADCAST_OEM {
        DWORD dbco_identifier;
        DWORD dbco_suppfunc;
 } DEV_BROADCAST_OEM,*PDEV_BROADCAST_OEM;
-typedef struct _DEV_BROADCAST_PORT {
+typedef struct _DEV_BROADCAST_PORT_A {
        DWORD dbcp_size;
        DWORD dbcp_devicetype;
        DWORD dbcp_reserved;
        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 {
        struct _DEV_BROADCAST_HDR dbud_dbh;
        char dbud_szName[1];
@@ -84,6 +90,12 @@ typedef struct _DEV_BROADCAST_VOLUME {
        WORD dbcv_flags;
 } 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
 }
 #endif