VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/cfgmgr32.h

Last change on this file 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: 9.1 KB
Line 
1/*
2 * Copyright (C) 2005 Mike McCormack
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 _CFGMGR32_H_
29#define _CFGMGR32_H_
30
31/* FIXME: #include <cfg.h> */
32
33#ifndef GUID_DEFINED
34# include <guiddef.h>
35#endif
36
37/* cfgmgr32 doesn't use the normal convention, it adds an underscore before A/W */
38#ifdef WINE_NO_UNICODE_MACROS
39# define DECL_WINELIB_CFGMGR32_TYPE_AW(type) /* nothing */
40#else
41# define DECL_WINELIB_CFGMGR32_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
42#endif
43
44#define CMAPI
45typedef DWORD CONFIGRET;
46
47#define CR_SUCCESS 0x00
48#define CR_DEFAULT 0x01
49#define CR_OUT_OF_MEMORY 0x02
50#define CR_INVALID_POINTER 0x03
51#define CR_INVALID_FLAG 0x04
52#define CR_INVALID_DEVNODE 0x05
53#define CR_INVALID_DEVINST CR_INVALID_DEVNODE
54#define CR_INVALID_RES_DES 0x06
55#define CR_INVALID_LOG_CONF 0x07
56#define CR_INVALID_ARBITRATOR 0x08
57#define CR_INVALID_NODELIST 0x09
58#define CR_DEVNODE_HAS_REQS 0x0a
59#define CR_DEVINST_HAS_REQS CR_DEVNODE_HAS_REQS
60#define CR_INVALID_RESOURCEID 0x0b
61#define CR_DLVXD_NOT_FOUND 0x0c
62#define CR_NO_SUCH_DEVNODE 0x0d
63#define CR_NO_SUCH_DEVINST CR_NO_SUCH_DEVNODE
64#define CR_NO_MORE_LOG_CONF 0x0e
65#define CR_NO_MORE_RES_DES 0x0f
66#define CR_ALREADY_SUCH_DEVNODE 0x10
67#define CR_ALREADY_SUCH_DEVINST CR_ALREADY_SUCH_DEVNODE
68#define CR_INVALID_RANGE_LIST 0x11
69#define CR_INVALID_RANGE 0x12
70#define CR_FAILURE 0x13
71#define CR_NO_SUCH_LOGICAL_DEV 0x14
72#define CR_CREATE_BLOCKED 0x15
73#define CR_NOT_SYSTEM_VM 0x16
74#define CR_REMOVE_VETOED 0x17
75#define CR_APM_VETOED 0x18
76#define CR_INVALID_LOAD_TYPE 0x19
77#define CR_BUFFER_SMALL 0x1a
78#define CR_NO_ARBITRATOR 0x1b
79#define CR_NO_REGISTRY_HANDLE 0x1c
80#define CR_REGISTRY_ERROR 0x1d
81#define CR_INVALID_DEVICE_ID 0x1e
82#define CR_INVALID_DATA 0x1f
83#define CR_INVALID_API 0x20
84#define CR_DEVLOADER_NOT_READY 0x21
85#define CR_NEED_RESTART 0x22
86#define CR_NO_MORE_HW_PROFILES 0x23
87#define CR_DEVICE_NOT_THERE 0x24
88#define CR_NO_SUCH_VALUE 0x25
89#define CR_WRONG_TYPE 0x26
90#define CR_INVALID_PRIORITY 0x27
91#define CR_NOT_DISABLEABLE 0x28
92#define CR_FREE_RESOURCES 0x29
93#define CR_QUERY_VETOED 0x2a
94#define CR_CANT_SHARE_IRQ 0x2b
95#define CR_NO_DEPENDENT 0x2c
96#define CR_SAME_RESOURCES 0x2d
97#define CR_NO_SUCH_REGISTRY_KEY 0x2e
98#define CR_INVALID_MACHINENAME 0x2f
99#define CR_REMOTE_COMM_FAILURE 0x30
100#define CR_MACHINE_UNAVAILABLE 0x31
101#define CR_NO_CM_SERVICES 0x32
102#define CR_ACCESS_DENIED 0x33
103#define CR_CALL_NOT_IMPLEMENTED 0x34
104#define CR_INVALID_PROPERTY 0x35
105#define CR_DEVICE_INTERFACE_ACTIVE 0x36
106#define CR_NO_SUCH_DEVICE_INTERFACE 0x37
107#define CR_INVALID_REFERENCE_STRING 0x38
108#define CR_INVALID_CONFLICT_LIST 0x39
109#define CR_INVALID_INDEX 0x3a
110#define CR_INVALID_STRUCTURE_SIZE 0x3b
111#define NUM_CR_RESULTS 0x3c
112
113#define MAX_DEVICE_ID_LEN 200
114#define MAX_DEVNODE_ID_LEN MAX_DEVICE_ID_LEN
115
116#define MAX_CLASS_NAME_LEN 32
117#define MAX_GUID_STRING_LEN 39
118#define MAX_PROFILE_LEN 80
119
120#define CM_DRP_DEVICEDESC 0x01
121#define CM_DRP_HARDWAREID 0x02
122#define CM_DRP_COMPATIBLEIDS 0x03
123#define CM_DRP_UNUSED0 0x04
124#define CM_DRP_SERVICE 0x05
125#define CM_DRP_UNUSED1 0x06
126#define CM_DRP_UNUSED2 0x07
127#define CM_DRP_CLASS 0x08
128#define CM_DRP_CLASSGUID 0x09
129#define CM_DRP_DRIVER 0x0A
130#define CM_DRP_CONFIGFLAGS 0x0B
131#define CM_DRP_MFG 0x0C
132#define CM_DRP_FRIENDLYNAME 0x0D
133#define CM_DRP_LOCATION_INFORMATION 0x0E
134#define CM_DRP_PHYSICAL_DEVICE_OBJECT_NAME 0x0F
135#define CM_DRP_CAPABILITIES 0x10
136#define CM_DRP_UI_NUMBER 0x11
137#define CM_DRP_UPPERFILTERS 0x12
138#define CM_DRP_LOWERFILTERS 0x13
139#define CM_DRP_BUSTYPEGUID 0x14
140#define CM_DRP_LEGACYBUSTYPE 0x15
141#define CM_DRP_BUSNUMBER 0x16
142#define CM_DRP_ENUMERATOR_NAME 0x17
143#define CM_DRP_SECURITY 0x18
144#define CM_DRP_SECURITY_SDS 0x19
145#define CM_DRP_DEVTYPE 0x1A
146#define CM_DRP_EXCLUSIVE 0x1B
147#define CM_DRP_CHARACTERISTICS 0x1C
148#define CM_DRP_ADDRESS 0x1D
149#define CM_DRP_UI_NUMBER_DESC_FORMAT 0x1E
150#define CM_DRP_DEVICE_POWER_DATA 0x1F
151#define CM_DRP_REMOVAL_POLICY 0x20
152#define CM_DRP_REMOVAL_POLICY_HW_DEFAULT 0x21
153#define CM_DRP_REMOVAL_POLICY_OVERRIDE 0x22
154#define CM_DRP_INSTALL_STATE 0x23
155#define CM_DRP_LOCATION_PATHS 0x24
156#define CM_DRP_BASE_CONTAINERID 0x25
157#define CM_DRP_MIN 0x01
158#define CM_DRP_MAX 0x25
159
160#define CM_CRP_UPPERFILTERS CM_DRP_UPPERFILTERS
161#define CM_CRP_LOWERFILTERS CM_DRP_LOWERFILTERS
162#define CM_CRP_SECURITY CM_DRP_SECURITY
163#define CM_CRP_SECURITY_SDS CM_DRP_SECURITY_SDS
164#define CM_CRP_DEVTYPE CM_DRP_DEVTYPE
165#define CM_CRP_EXCLUSIVE CM_DRP_EXCLUSIVE
166#define CM_CRP_CHARACTERISTICS CM_DRP_CHARACTERISTICS
167#define CM_CRP_MIN CM_DRP_MIN
168#define CM_CRP_MAX CM_DRP_MAX
169
170typedef DWORD DEVINST, *PDEVINST;
171typedef DWORD DEVNODE, *PDEVNODE;
172typedef HANDLE HMACHINE, *PHMACHINE;
173typedef CHAR *DEVNODEID_A, *DEVINSTID_A;
174typedef WCHAR *DEVNODEID_W, *DEVINSTID_W;
175
176DECL_WINELIB_CFGMGR32_TYPE_AW(DEVNODEID)
177DECL_WINELIB_CFGMGR32_TYPE_AW(DEVINSTID)
178
179#ifdef __cplusplus
180extern "C" {
181#endif
182
183CMAPI CONFIGRET WINAPI CM_Connect_MachineA(PCSTR,PHMACHINE);
184CMAPI CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR,PHMACHINE);
185#define CM_Connect_Machine WINELIB_NAME_AW(CM_Connect_Machine)
186CMAPI CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST,DEVINSTID_A,DEVINST,ULONG);
187CMAPI CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST,DEVINSTID_W,DEVINST,ULONG);
188#define CM_Create_DevNode WINELIB_NAME_AW(CM_Create_DevNode)
189CMAPI CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE);
190CMAPI CONFIGRET WINAPI CM_Get_Device_IDA(DEVINST,PSTR,ULONG,ULONG);
191CMAPI CONFIGRET WINAPI CM_Get_Device_IDW(DEVINST,PWSTR,ULONG,ULONG);
192#define CM_Get_Device_ID WINELIB_NAME_AW(CM_Get_Device_ID)
193CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExA(DEVINST,PSTR,ULONG,ULONG,HMACHINE);
194CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExW(DEVINST,PWSTR,ULONG,ULONG,HMACHINE);
195#define CM_Get_Device_ID_Ex WINELIB_NAME_AW(CM_Get_Device_ID_Ex)
196CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListA(PCSTR,PCHAR,ULONG,ULONG);
197CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListW(PCWSTR,PWCHAR,ULONG,ULONG);
198#define CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List)
199CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExA(PCSTR,PCHAR,ULONG,ULONG,HMACHINE);
200CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW(PCWSTR,PWCHAR,ULONG,ULONG,HMACHINE);
201#define CM_Get_Device_ID_List_Ex WINELIB_NAME_AW(CM_Get_Device_ID_List_Ex)
202CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size(PULONG,DEVINST,ULONG);
203CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(PULONG,DEVINST,ULONG,HMACHINE);
204CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST,DEVINSTID_A,ULONG);
205CMAPI CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST,DEVINSTID_W,ULONG);
206#define CM_Locate_DevNode WINELIB_NAME_AW(CM_Locate_DevNode)
207
208#ifdef __cplusplus
209}
210#endif
211
212#undef DECL_WINELIB_CFGMGR32_TYPE_AW
213
214#endif /* _CFGMGR32_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