summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/dbt.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include/dbt.h')
-rw-r--r--winsup/w32api/include/dbt.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/winsup/w32api/include/dbt.h b/winsup/w32api/include/dbt.h
index f854b84e6..e79e431c1 100644
--- a/winsup/w32api/include/dbt.h
+++ b/winsup/w32api/include/dbt.h
@@ -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