Remove WINE_UNUSED checks.
[wine/multimedia.git] / include / dbt.h
blob115a85b95ea1240a2ba0b23360decf1d12427b12
1 /*
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
19 #ifndef __WINE_DBT_H
20 #define __WINE_DBT_H
22 /* dbt.h doesn't use the normal convention, it adds an underscore before A/W */
23 #ifdef __WINESRC__
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
42 DWORD dbch_size;
43 DWORD dbch_devicetype;
44 DWORD dbch_reserved;
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
57 DWORD dbco_size;
58 DWORD dbco_devicetype;
59 DWORD dbco_reserved;
60 DWORD dbco_identifier;
61 DWORD dbco_suppfunc;
62 } DEV_BROADCAST_OEM, *PDEV_BROADCAST_OEM;
64 typedef struct _DEV_BROADCAST_DEVNODE
66 DWORD dbcd_size;
67 DWORD dbcd_devicetype;
68 DWORD dbcd_reserved;
69 DWORD dbcd_devnode;
70 } DEV_BROADCAST_DEVNODE, *PDEV_BROADCAST_DEVNODE;
72 typedef struct _DEV_BROADCAST_VOLUME
74 DWORD dbcv_size;
75 DWORD dbcv_devicetype;
76 DWORD dbcv_reserved;
77 DWORD dbcv_unitmask;
78 WORD dbcv_flags;
79 } DEV_BROADCAST_VOLUME, *PDEV_BROADCAST_VOLUME;
81 typedef struct _DEV_BROADCAST_PORT_A
83 DWORD dbcp_size;
84 DWORD dbcp_devicetype;
85 DWORD dbcp_reserved;
86 char dbcp_name[1];
87 } DEV_BROADCAST_PORT_A, *PDEV_BROADCAST_PORT_A;
89 typedef struct _DEV_BROADCAST_PORT_W
91 DWORD dbcp_size;
92 DWORD dbcp_devicetype;
93 DWORD dbcp_reserved;
94 WCHAR dbcp_name[1];
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
102 DWORD dbcn_size;
103 DWORD dbcn_devicetype;
104 DWORD dbcn_reserved;
105 DWORD dbcn_resource;
106 DWORD dbcn_flags;
107 } DEV_BROADCAST_NET, *PDEV_BROADCAST_NET;
109 typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A
111 DWORD dbcc_size;
112 DWORD dbcc_devicetype;
113 DWORD dbcc_reserved;
114 GUID dbcc_classguid;
115 CHAR dbcc_name[1];
116 } DEV_BROADCAST_DEVICEINTERFACE_A, *PDEV_BROADCAST_DEVICEINTERFACE_A;
118 typedef struct _DEV_BROADCAST_DEVICEINTERFACE_W
120 DWORD dbcc_size;
121 DWORD dbcc_devicetype;
122 DWORD dbcc_reserved;
123 GUID dbcc_classguid;
124 WCHAR dbcc_name[1];
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
132 DWORD dbch_size;
133 DWORD dbch_devicetype;
134 DWORD dbch_reserved;
135 HANDLE dbch_handle;
136 HDEVNOTIFY dbch_hdevnotify;
137 GUID dbch_eventguid;
138 LONG dbch_nameoffset;
139 BYTE dbch_data[1];
140 } DEV_BROADCAST_HANDLE, *PDEV_BROADCAST_HANDLE;
142 #endif /* __WINE_DBT_H */