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
26 /* dbt.h doesn't use the normal convention, it adds an underscore before A/W */
27 #ifdef WINE_NO_UNICODE_MACROS
28 # define DECL_WINELIB_DBT_TYPE_AW(type) /* nothing */
30 # define DECL_WINELIB_DBT_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
33 #define DBT_DEVNODES_CHANGED 0x0007
34 #define DBT_QUERYCHANGECONFIG 0x0017
35 #define DBT_CONFIGCHANGED 0x0018
36 #define DBT_CONFIGCHANGECANCELED 0x0019
37 #define DBT_NO_DISK_SPACE 0x0047
38 #define DBT_LOW_DISK_SPACE 0x0048
39 #define DBT_CONFIGMGPRIVATE 0x7FFF
40 #define DBT_DEVICEARRIVAL 0x8000
41 #define DBT_DEVICEQUERYREMOVE 0x8001
42 #define DBT_DEVICEQUERYREMOVEFAILED 0x8002
43 #define DBT_DEVICEREMOVEPENDING 0x8003
44 #define DBT_DEVICEREMOVECOMPLETE 0x8004
45 #define DBT_DEVICETYPESPECIFIC 0x8005
46 #define DBT_CUSTOMEVENT 0x8006
48 typedef struct _DEV_BROADCAST_HDR
51 DWORD dbch_devicetype
;
53 } DEV_BROADCAST_HDR
, *PDEV_BROADCAST_HDR
;
55 #define DBT_DEVTYP_OEM 0x00000000
56 #define DBT_DEVTYP_DEVNODE 0x00000001
57 #define DBT_DEVTYP_VOLUME 0x00000002
58 #define DBT_DEVTYP_PORT 0x00000003
59 #define DBT_DEVTYP_NET 0x00000004
60 #define DBT_DEVTYP_DEVICEINTERFACE 0x00000005
61 #define DBT_DEVTYP_HANDLE 0x00000006
63 typedef struct _DEV_BROADCAST_OEM
66 DWORD dbco_devicetype
;
68 DWORD dbco_identifier
;
70 } DEV_BROADCAST_OEM
, *PDEV_BROADCAST_OEM
;
72 typedef struct _DEV_BROADCAST_DEVNODE
75 DWORD dbcd_devicetype
;
78 } DEV_BROADCAST_DEVNODE
, *PDEV_BROADCAST_DEVNODE
;
80 typedef struct _DEV_BROADCAST_VOLUME
83 DWORD dbcv_devicetype
;
87 } DEV_BROADCAST_VOLUME
, *PDEV_BROADCAST_VOLUME
;
89 #define DBTF_MEDIA 0x0001
90 #define DBTF_NET 0x0002
92 typedef struct _DEV_BROADCAST_PORT_A
95 DWORD dbcp_devicetype
;
98 } DEV_BROADCAST_PORT_A
, *PDEV_BROADCAST_PORT_A
;
100 typedef struct _DEV_BROADCAST_PORT_W
103 DWORD dbcp_devicetype
;
106 } DEV_BROADCAST_PORT_W
, *PDEV_BROADCAST_PORT_W
;
108 DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_PORT
)
109 DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_PORT
)
111 typedef struct _DEV_BROADCAST_NET
114 DWORD dbcn_devicetype
;
118 } DEV_BROADCAST_NET
, *PDEV_BROADCAST_NET
;
120 typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A
123 DWORD dbcc_devicetype
;
127 } DEV_BROADCAST_DEVICEINTERFACE_A
, *PDEV_BROADCAST_DEVICEINTERFACE_A
;
129 typedef struct _DEV_BROADCAST_DEVICEINTERFACE_W
132 DWORD dbcc_devicetype
;
136 } DEV_BROADCAST_DEVICEINTERFACE_W
, *PDEV_BROADCAST_DEVICEINTERFACE_W
;
138 DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_DEVICEINTERFACE
)
139 DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_DEVICEINTERFACE
)
141 typedef struct _DEV_BROADCAST_HANDLE
144 DWORD dbch_devicetype
;
147 HDEVNOTIFY dbch_hdevnotify
;
149 LONG dbch_nameoffset
;
151 } DEV_BROADCAST_HANDLE
, *PDEV_BROADCAST_HANDLE
;
153 #undef DECL_WINELIB_DBT_TYPE_AW
155 #endif /* __WINE_DBT_H */