VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/dbt.h@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
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#ifndef GUID_DEFINED
32# include <guiddef.h>
33#endif
34
35/* dbt.h doesn't use the normal convention, it adds an underscore before A/W */
36#ifdef WINE_NO_UNICODE_MACROS
37# define DECL_WINELIB_DBT_TYPE_AW(type) /* nothing */
38#else
39# define DECL_WINELIB_DBT_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
40#endif
41
42#define DBT_NO_DISK_SPACE 0x0047
43#define DBT_LOW_DISK_SPACE 0x0048
44#define DBT_CONFIGMGPRIVATE 0x7FFF
45#define DBT_DEVICEARRIVAL 0x8000
46#define DBT_DEVICEQUERYREMOVE 0x8001
47#define DBT_DEVICEQUERYREMOVEFAILED 0x8002
48#define DBT_DEVICEREMOVEPENDING 0x8003
49#define DBT_DEVICEREMOVECOMPLETE 0x8004
50#define DBT_DEVICETYPESPECIFIC 0x8005
51#define DBT_CUSTOMEVENT 0x8006
52
53typedef struct _DEV_BROADCAST_HDR
54{
55 DWORD dbch_size;
56 DWORD dbch_devicetype;
57 DWORD dbch_reserved;
58} DEV_BROADCAST_HDR, *PDEV_BROADCAST_HDR;
59
60#define DBT_DEVTYP_OEM 0x00000000
61#define DBT_DEVTYP_DEVNODE 0x00000001
62#define DBT_DEVTYP_VOLUME 0x00000002
63#define DBT_DEVTYP_PORT 0x00000003
64#define DBT_DEVTYP_NET 0x00000004
65#define DBT_DEVTYP_DEVICEINTERFACE 0x00000005
66#define DBT_DEVTYP_HANDLE 0x00000006
67
68typedef struct _DEV_BROADCAST_OEM
69{
70 DWORD dbco_size;
71 DWORD dbco_devicetype;
72 DWORD dbco_reserved;
73 DWORD dbco_identifier;
74 DWORD dbco_suppfunc;
75} DEV_BROADCAST_OEM, *PDEV_BROADCAST_OEM;
76
77typedef struct _DEV_BROADCAST_DEVNODE
78{
79 DWORD dbcd_size;
80 DWORD dbcd_devicetype;
81 DWORD dbcd_reserved;
82 DWORD dbcd_devnode;
83} DEV_BROADCAST_DEVNODE, *PDEV_BROADCAST_DEVNODE;
84
85typedef struct _DEV_BROADCAST_VOLUME
86{
87 DWORD dbcv_size;
88 DWORD dbcv_devicetype;
89 DWORD dbcv_reserved;
90 DWORD dbcv_unitmask;
91 WORD dbcv_flags;
92} DEV_BROADCAST_VOLUME, *PDEV_BROADCAST_VOLUME;
93
94#define DBTF_MEDIA 0x0001
95#define DBTF_NET 0x0002
96
97typedef struct _DEV_BROADCAST_PORT_A
98{
99 DWORD dbcp_size;
100 DWORD dbcp_devicetype;
101 DWORD dbcp_reserved;
102 char dbcp_name[1];
103} DEV_BROADCAST_PORT_A, *PDEV_BROADCAST_PORT_A;
104
105typedef struct _DEV_BROADCAST_PORT_W
106{
107 DWORD dbcp_size;
108 DWORD dbcp_devicetype;
109 DWORD dbcp_reserved;
110 WCHAR dbcp_name[1];
111} DEV_BROADCAST_PORT_W, *PDEV_BROADCAST_PORT_W;
112
113DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_PORT)
114DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_PORT)
115
116typedef struct _DEV_BROADCAST_NET
117{
118 DWORD dbcn_size;
119 DWORD dbcn_devicetype;
120 DWORD dbcn_reserved;
121 DWORD dbcn_resource;
122 DWORD dbcn_flags;
123} DEV_BROADCAST_NET, *PDEV_BROADCAST_NET;
124
125typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A
126{
127 DWORD dbcc_size;
128 DWORD dbcc_devicetype;
129 DWORD dbcc_reserved;
130 GUID dbcc_classguid;
131 CHAR dbcc_name[1];
132} DEV_BROADCAST_DEVICEINTERFACE_A, *PDEV_BROADCAST_DEVICEINTERFACE_A;
133
134typedef struct _DEV_BROADCAST_DEVICEINTERFACE_W
135{
136 DWORD dbcc_size;
137 DWORD dbcc_devicetype;
138 DWORD dbcc_reserved;
139 GUID dbcc_classguid;
140 WCHAR dbcc_name[1];
141} DEV_BROADCAST_DEVICEINTERFACE_W, *PDEV_BROADCAST_DEVICEINTERFACE_W;
142
143DECL_WINELIB_DBT_TYPE_AW(DEV_BROADCAST_DEVICEINTERFACE)
144DECL_WINELIB_DBT_TYPE_AW(PDEV_BROADCAST_DEVICEINTERFACE)
145
146typedef struct _DEV_BROADCAST_HANDLE
147{
148 DWORD dbch_size;
149 DWORD dbch_devicetype;
150 DWORD dbch_reserved;
151 HANDLE dbch_handle;
152 HDEVNOTIFY dbch_hdevnotify;
153 GUID dbch_eventguid;
154 LONG dbch_nameoffset;
155 BYTE dbch_data[1];
156} DEV_BROADCAST_HANDLE, *PDEV_BROADCAST_HANDLE;
157
158#undef DECL_WINELIB_DBT_TYPE_AW
159
160#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