2 * Copyright (C) 2004 Ulrich Czekalla
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 /* dbt.h doesn't use the normal convention, it adds an underscore before A/W */
23 #ifdef WINE_NO_UNICODE_MACROS
24 # define DECL_WINELIB_DBT_TYPE_AW(type) /* nothing */
26 # define DECL_WINELIB_DBT_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
29 #define DBT_NO_DISK_SPACE 0x0047
30 #define DBT_LOW_DISK_SPACE 0x0048
31 #define DBT_CONFIGMGPRIVATE 0x7FFF
32 #define DBT_DEVICEARRIVAL 0x8000
33 #define DBT_DEVICEQUERYREMOVE 0x8001
34 #define DBT_DEVICEQUERYREMOVEFAILED 0x8002
35 #define DBT_DEVICEREMOVEPENDING 0x8003
36 #define DBT_DEVICEREMOVECOMPLETE 0x8004
37 #define DBT_DEVICETYPESPECIFIC 0x8005
38 #define DBT_CUSTOMEVENT 0x8006
40 typedef struct _DEV_BROADCAST_HDR
43 DWORD dbch_devicetype
;
45 } DEV_BROADCAST_HDR
, *PDEV_BROADCAST_HDR
;
47 #define DBT_DEVTYP_OEM 0x00000000
48 #define DBT_DEVTYP_DEVNODE 0x00000001
49 #define DBT_DEVTYP_VOLUME 0x00000002
50 #define DBT_DEVTYP_PORT 0x00000003
51 #define DBT_DEVTYP_NET 0x00000004
52 #define DBT_DEVTYP_DEVICEINTERFACE 0x00000005
53 #define DBT_DEVTYP_HANDLE 0x00000006
55 typedef struct _DEV_BROADCAST_OEM
58 DWORD dbco_devicetype
;
60 DWORD dbco_identifier
;
62 } DEV_BROADCAST_OEM
, *PDEV_BROADCAST_OEM
;
64 typedef struct _DEV_BROADCAST_DEVNODE
67 DWORD dbcd_devicetype
;
70 } DEV_BROADCAST_DEVNODE
, *PDEV_BROADCAST_DEVNODE
;
72 typedef struct _DEV_BROADCAST_VOLUME
75 DWORD dbcv_devicetype
;
79 } DEV_BROADCAST_VOLUME
, *PDEV_BROADCAST_VOLUME
;
81 #define DBTF_MEDIA 0x0001
82 #define DBTF_NET 0x0002
84 typedef struct _DEV_BROADCAST_PORT_A
87 DWORD dbcp_devicetype
;
90 } DEV_BROADCAST_PORT_A
, *PDEV_BROADCAST_PORT_A
;
92 typedef struct _DEV_BROADCAST_PORT_W
95 DWORD dbcp_devicetype
;
98 } DEV_BROADCAST_PORT_W
, *PDEV_BROADCAST_PORT_W
;
100 DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_PORT
)
101 DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_PORT
)
103 typedef struct _DEV_BROADCAST_NET
106 DWORD dbcn_devicetype
;
110 } DEV_BROADCAST_NET
, *PDEV_BROADCAST_NET
;
112 typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A
115 DWORD dbcc_devicetype
;
119 } DEV_BROADCAST_DEVICEINTERFACE_A
, *PDEV_BROADCAST_DEVICEINTERFACE_A
;
121 typedef struct _DEV_BROADCAST_DEVICEINTERFACE_W
124 DWORD dbcc_devicetype
;
128 } DEV_BROADCAST_DEVICEINTERFACE_W
, *PDEV_BROADCAST_DEVICEINTERFACE_W
;
130 DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_DEVICEINTERFACE
)
131 DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_DEVICEINTERFACE
)
133 typedef struct _DEV_BROADCAST_HANDLE
136 DWORD dbch_devicetype
;
139 HDEVNOTIFY dbch_hdevnotify
;
141 LONG dbch_nameoffset
;
143 } DEV_BROADCAST_HANDLE
, *PDEV_BROADCAST_HANDLE
;
145 #undef DECL_WINELIB_DBT_TYPE_AW
147 #endif /* __WINE_DBT_H */