VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/dbt.h@ 33656

Last change on this file since 33656 was 33656, checked in by vboxsync, 14 years ago

*: rebrand Sun (L)GPL disclaimers

  • Property svn:eol-style set to native
File size: 5.0 KB
Line 
1/*
2 * Copyright (C) 2004 Ulrich Czekalla
3 *
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.
8 *
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.
13 *
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
17 */
18
19/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_DBT_H
29#define __WINE_DBT_H
30
31/* dbt.h doesn't use the normal convention, it adds an underscore before A/W */
32#ifdef WINE_NO_UNICODE_MACROS
33# define DECL_WINELIB_DBT_TYPE_AW(type) /* nothing */
34#else
35# define DECL_WINELIB_DBT_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
36#endif
37
38#define DBT_NO_DISK_SPACE 0x0047
39#define DBT_LOW_DISK_SPACE 0x0048
40#define DBT_CONFIGMGPRIVATE 0x7FFF
41#define DBT_DEVICEARRIVAL 0x8000
42#define DBT_DEVICEQUERYREMOVE 0x8001
43#define DBT_DEVICEQUERYREMOVEFAILED 0x8002
44#define DBT_DEVICEREMOVEPENDING 0x8003
45#define DBT_DEVICEREMOVECOMPLETE 0x8004
46#define DBT_DEVICETYPESPECIFIC 0x8005
47#define DBT_CUSTOMEVENT 0x8006
48
49typedef struct _DEV_BROADCAST_HDR
50{
51 DWORD dbch_size;
52 DWORD dbch_devicetype;
53 DWORD dbch_reserved;
54} DEV_BROADCAST_HDR, *PDEV_BROADCAST_HDR;
55
56#define DBT_DEVTYP_OEM 0x00000000
57#define DBT_DEVTYP_DEVNODE 0x00000001
58#define DBT_DEVTYP_VOLUME 0x00000002
59#define DBT_DEVTYP_PORT 0x00000003
60#define DBT_DEVTYP_NET 0x00000004
61#define DBT_DEVTYP_DEVICEINTERFACE 0x00000005
62#define DBT_DEVTYP_HANDLE 0x00000006
63
64typedef struct _DEV_BROADCAST_OEM
65{
66 DWORD dbco_size;
67 DWORD dbco_devicetype;
68 DWORD dbco_reserved;
69 DWORD dbco_identifier;
70 DWORD dbco_suppfunc;
71} DEV_BROADCAST_OEM, *PDEV_BROADCAST_OEM;
72
73typedef struct _DEV_BROADCAST_DEVNODE
74{
75 DWORD dbcd_size;
76 DWORD dbcd_devicetype;
77 DWORD dbcd_reserved;
78 DWORD dbcd_devnode;
79} DEV_BROADCAST_DEVNODE, *PDEV_BROADCAST_DEVNODE;
80
81typedef struct _DEV_BROADCAST_VOLUME
82{
83 DWORD dbcv_size;
84 DWORD dbcv_devicetype;
85 DWORD dbcv_reserved;
86 DWORD dbcv_unitmask;
87 WORD dbcv_flags;
88} DEV_BROADCAST_VOLUME, *PDEV_BROADCAST_VOLUME;
89
90#define DBTF_MEDIA 0x0001
91#define DBTF_NET 0x0002
92
93typedef struct _DEV_BROADCAST_PORT_A
94{
95 DWORD dbcp_size;
96 DWORD dbcp_devicetype;
97 DWORD dbcp_reserved;
98 char dbcp_name[1];
99} DEV_BROADCAST_PORT_A, *PDEV_BROADCAST_PORT_A;
100
101typedef struct _DEV_BROADCAST_PORT_W
102{
103 DWORD dbcp_size;
104 DWORD dbcp_devicetype;
105 DWORD dbcp_reserved;
106 WCHAR dbcp_name[1];
107} DEV_BROADCAST_PORT_W, *PDEV_BROADCAST_PORT_W;
108
109DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_PORT)
110DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_PORT)
111
112typedef struct _DEV_BROADCAST_NET
113{
114 DWORD dbcn_size;
115 DWORD dbcn_devicetype;
116 DWORD dbcn_reserved;
117 DWORD dbcn_resource;
118 DWORD dbcn_flags;
119} DEV_BROADCAST_NET, *PDEV_BROADCAST_NET;
120
121typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A
122{
123 DWORD dbcc_size;
124 DWORD dbcc_devicetype;
125 DWORD dbcc_reserved;
126 GUID dbcc_classguid;
127 CHAR dbcc_name[1];
128} DEV_BROADCAST_DEVICEINTERFACE_A, *PDEV_BROADCAST_DEVICEINTERFACE_A;
129
130typedef struct _DEV_BROADCAST_DEVICEINTERFACE_W
131{
132 DWORD dbcc_size;
133 DWORD dbcc_devicetype;
134 DWORD dbcc_reserved;
135 GUID dbcc_classguid;
136 WCHAR dbcc_name[1];
137} DEV_BROADCAST_DEVICEINTERFACE_W, *PDEV_BROADCAST_DEVICEINTERFACE_W;
138
139DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_DEVICEINTERFACE)
140DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_DEVICEINTERFACE)
141
142typedef struct _DEV_BROADCAST_HANDLE
143{
144 DWORD dbch_size;
145 DWORD dbch_devicetype;
146 DWORD dbch_reserved;
147 HANDLE dbch_handle;
148 HDEVNOTIFY dbch_hdevnotify;
149 GUID dbch_eventguid;
150 LONG dbch_nameoffset;
151 BYTE dbch_data[1];
152} DEV_BROADCAST_HANDLE, *PDEV_BROADCAST_HANDLE;
153
154#undef DECL_WINELIB_DBT_TYPE_AW
155
156#endif /* __WINE_DBT_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette