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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 /* dbt.h doesn't use the normal convention, it adds an underscore before A/W */
24 # define DECL_WINELIB_DBT_TYPE_AW(type) /* nothing */
25 #else /* __WINESRC__ */
26 # define DECL_WINELIB_DBT_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
27 #endif /* __WINESRC__ */
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 typedef struct _DEV_BROADCAST_PORT_A
84 DWORD dbcp_devicetype;
87 } DEV_BROADCAST_PORT_A, *PDEV_BROADCAST_PORT_A;
89 typedef struct _DEV_BROADCAST_PORT_W
92 DWORD dbcp_devicetype;
95 } DEV_BROADCAST_PORT_W, *PDEV_BROADCAST_PORT_W;
97 DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_PORT)
98 DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_PORT)
100 typedef struct _DEV_BROADCAST_NET
103 DWORD dbcn_devicetype;
107 } DEV_BROADCAST_NET, *PDEV_BROADCAST_NET;
109 typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A
112 DWORD dbcc_devicetype;
116 } DEV_BROADCAST_DEVICEINTERFACE_A, *PDEV_BROADCAST_DEVICEINTERFACE_A;
118 typedef struct _DEV_BROADCAST_DEVICEINTERFACE_W
121 DWORD dbcc_devicetype;
125 } DEV_BROADCAST_DEVICEINTERFACE_W, *PDEV_BROADCAST_DEVICEINTERFACE_W;
127 DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_DEVICEINTERFACE)
128 DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_DEVICEINTERFACE)
130 typedef struct _DEV_BROADCAST_HANDLE
133 DWORD dbch_devicetype;
136 HDEVNOTIFY dbch_hdevnotify;
138 LONG dbch_nameoffset;
140 } DEV_BROADCAST_HANDLE, *PDEV_BROADCAST_HANDLE;
142 #endif /* __WINE_DBT_H */