Sync with trunk head.
[reactos.git] / include / reactos / wine / cfgmgr32.h
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 Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #ifndef _CFGMGR32_H_
20 #define _CFGMGR32_H_
21
22 /* cfgmgr32 doesn't use the normal convention, it adds an underscore before A/W */
23 #ifdef __WINESRC__
24 # define DECL_WINELIB_CFGMGR32_TYPE_AW(type) /* nothing */
25 #else /* __WINESRC__ */
26 # define DECL_WINELIB_CFGMGR32_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
27 #endif /* __WINESRC__ */
28
29 typedef DWORD CONFIGRET;
30 typedef HANDLE HMACHINE;
31 typedef HMACHINE *PHMACHINE;
32 typedef DWORD DEVINST;
33 typedef DEVINST *PDEVINST;
34 typedef DWORD DEVNODE;
35 typedef DEVNODE *PDEVNODE;
36 typedef ULONG REGDISPOSITION;
37 typedef DWORD_PTR LOG_CONF;
38 typedef LOG_CONF *PLOG_CONF;
39 typedef ULONG PRIORITY;
40 typedef PRIORITY *PPRIORITY;
41
42
43 typedef CHAR *DEVINSTID_A;
44 typedef WCHAR *DEVINSTID_W;
45 DECL_WINELIB_CFGMGR32_TYPE_AW(DEVINSTID)
46
47 #define CR_SUCCESS 0x00000000
48 #define CR_OUT_OF_MEMORY 0x00000002
49 #define CR_INVALID_POINTER 0x00000003
50 #define CR_INVALID_FLAG 0x00000004
51 #define CR_INVALID_DEVNODE 0x00000005
52 #define CR_INVALID_DEVINST CR_INVALID_DEVNODE
53 #define CR_INVALID_LOG_CONF 0x00000007
54 #define CR_NO_SUCH_DEVNODE 0x0000000D
55 #define CR_NO_SUCH_DEVINST CR_NO_SUCH_DEVNODE
56 #define CR_FAILURE 0x00000013
57 #define CR_BUFFER_SMALL 0x0000001A
58 #define CR_REGISTRY_ERROR 0x0000001D
59 #define CR_INVALID_DEVICE_ID 0x0000001E
60 #define CR_INVALID_DATA 0x0000001F
61 #define CR_NO_SUCH_VALUE 0x00000025
62 #define CR_INVALID_PRIORITY 0x00000027
63 #define CR_NO_SUCH_REGISTRY_KEY 0x0000002E
64 #define CR_INVALID_MACHINENAME 0x0000002F
65 #define CR_ACCESS_DENIED 0x00000033
66 #define CR_CALL_NOT_IMPLEMENTED 0x00000034
67 #define CR_INVALID_PROPERTY 0x00000035
68
69 #define MAX_CLASS_NAME_LEN 32
70 #define MAX_GUID_STRING_LEN 39
71 #define MAX_PROFILE_LEN 80
72 #define MAX_DEVICE_ID_LEN 200
73 #define MAX_DEVNODE_ID_LEN MAX_DEVICE_ID_LEN
74
75 /* Disposition values for CM_Open_Class_Key[_Ex] */
76 #define RegDisposition_OpenAlways 0x00000000
77 #define RegDisposition_OpenExisting 0x00000001
78 #define RegDisposition_Bits 0x00000001
79
80 /* ulFlags for CM_Add_ID[_Ex] */
81 #define CM_ADD_ID_HARDWARE 0x00000000
82 #define CM_ADD_ID_COMPATIBLE 0x00000001
83 #define CM_ADD_ID_BITS 0x00000001
84
85 /* ulFlags for CM_Open_Class_Key[_Ex] */
86 #define CM_OPEN_CLASS_KEY_INSTALLER 0x00000000
87 #define CM_OPEN_CLASS_KEY_INTERFACE 0x00000001
88 #define CM_OPEN_CLASS_KEY_BITS 0x00000001
89
90 /* ulFlags for CM_Locate_DevNode[_Ex] */
91 #define CM_LOCATE_DEVNODE_NORMAL 0x00000000
92 #define CM_LOCATE_DEVNODE_PHANTOM 0x00000001
93 #define CM_LOCATE_DEVNODE_CANCELREMOVE 0x00000002
94 #define CM_LOCATE_DEVNODE_NOVALIDATION 0x00000004
95 #define CM_LOCATE_DEVNODE_BITS 0x00000007
96
97 #define CM_LOCATE_DEVINST_NORMAL CM_LOCATE_DEVNODE_NORMAL
98 #define CM_LOCATE_DEVINST_PHANTOM CM_LOCATE_DEVNODE_PHANTOM
99 #define CM_LOCATE_DEVINST_CANCELREMOVE CM_LOCATE_DEVNODE_CANCELREMOVE
100 #define CM_LOCATE_DEVINST_NOVALIDATION CM_LOCATE_DEVNODE_NOVALIDATION
101 #define CM_LOCATE_DEVINST_BITS CM_LOCATE_DEVNODE_BITS
102
103 /* ulFlags for CM_Set_DevNode_Problem[_Ex] */
104 #define CM_SET_DEVNODE_PROBLEM_NORMAL 0x00000000
105 #define CM_SET_DEVNODE_PROBLEM_OVERRIDE 0x00000001
106 #define CM_SET_DEVNODE_PROBLEM_BITS 0x00000001
107
108 #define CM_SET_DEVINST_PROBLEM_NORMAL CM_SET_DEVNODE_PROBLEM_NORMAL
109 #define CM_SET_DEVINST_PROBLEM_OVERRIDE CM_SET_DEVNODE_PROBLEM_OVERRIDE
110 #define CM_SET_DEVINST_PROBLEM_BITS CM_SET_DEVNODE_PROBLEM_BITS
111
112 /* Properties for CM_Get/Set_DevNode_Registry_Property[_Ex]A/W */
113 #define CM_DRP_DEVICEDESC 0x00000001
114 #define CM_DRP_HARDWAREID 0x00000002
115 #define CM_DRP_COMPATIBLEIDS 0x00000003
116 #define CM_DRP_UNUSED0 0x00000004
117 #define CM_DRP_SERVICE 0x00000005
118 #define CM_DRP_UNUSED1 0x00000006
119 #define CM_DRP_UNUSED2 0x00000007
120 #define CM_DRP_CLASS 0x00000008
121 #define CM_DRP_CLASSGUID 0x00000009
122 #define CM_DRP_DRIVER 0x0000000A
123 #define CM_DRP_CONFIGFLAGS 0x0000000B
124 #define CM_DRP_MFG 0x0000000C
125 #define CM_DRP_FRIENDLYNAME 0x0000000D
126 #define CM_DRP_LOCATION_INFORMATION 0x0000000E
127 #define CM_DRP_PHYSICAL_DEVICE_OBJECT_NAME 0x0000000F
128 #define CM_DRP_CAPABILITIES 0x00000010
129 #define CM_DRP_UI_NUMBER 0x00000011
130 #define CM_DRP_UPPERFILTERS 0x00000012
131 #define CM_DRP_LOWERFILTERS 0x00000013
132 #define CM_DRP_BUSTYPEGUID 0x00000014
133 #define CM_DRP_LEGACYBUSTYPE 0x00000015
134 #define CM_DRP_BUSNUMBER 0x00000016
135 #define CM_DRP_ENUMERATOR_NAME 0x00000017
136
137 #define CM_DRP_MIN 0x00000001
138 #define CM_DRP_MAX 0x00000017
139
140 /* ulFlags for CM_Delete_Class_Key[_Ex] */
141 #define CM_DELETE_CLASS_ONLY 0x00000000
142 #define CM_DELETE_CLASS_SUBKEYS 0x00000001
143 #define CM_DELETE_CLASS_BITS 0x00000001
144
145 /* ulFlags for CM_Get_Device_ID_List and CM_Get_Device_ID_List_Size */
146 #define CM_GETIDLIST_FILTER_NONE (0x00000000)
147 #define CM_GETIDLIST_FILTER_ENUMERATOR (0x00000001)
148 #define CM_GETIDLIST_FILTER_SERVICE (0x00000002)
149 #define CM_GETIDLIST_FILTER_EJECTRELATIONS (0x00000004)
150 #define CM_GETIDLIST_FILTER_REMOVALRELATIONS (0x00000008)
151 #define CM_GETIDLIST_FILTER_POWERRELATIONS (0x00000010)
152 #define CM_GETIDLIST_FILTER_BUSRELATIONS (0x00000020)
153 #define CM_GETIDLIST_DONOTGENERATE (0x10000040)
154 #define CM_GETIDLIST_FILTER_BITS (0x1000007F)
155
156 /* ulFlags for CM_Reenumerate_DevNode[_Ex] */
157 #define CM_REENUMERATE_NORMAL 0x00000000
158 #define CM_REENUMERATE_SYNCHRONOUS 0x00000001
159 #define CM_REENUMERATE_RETRY_INSTALLATION 0x00000002
160 #define CM_REENUMERATE_ASYNCHRONOUS 0x00000004
161 #define CM_REENUMERATE_BITS 0x00000007
162
163 /* ulFlags for CM_Run_Detection[_Ex] */
164 #define CM_DETECT_NEW_PROFILE 0x00000001
165 #define CM_DETECT_CRASHED 0x00000002
166 #define CM_DETECT_HWPROF_FIRST_BOOT 0x00000004
167 #define CM_DETECT_RUN 0x80000000
168 #define CM_DETECT_BITS 0x80000007
169
170 /* ulFlags for CM_Setup_DevInst[_Ex] */
171 #define CM_SETUP_DEVNODE_READY 0x00000000
172 #define CM_SETUP_DEVINST_READY CM_SETUP_DEVNODE_READY
173 #define CM_SETUP_DOWNLOAD 0x00000001
174 #define CM_SETUP_WRITE_LOG_CONFS 0x00000002
175 #define CM_SETUP_PROP_CHANGE 0x00000003
176 #define CM_SETUP_DEVNODE_RESET 0x00000004
177 #define CM_SETUP_DEVINST_RESET CM_SETUP_DEVNODE_RESET
178 #define CM_SETUP_BITS 0x00000007
179
180 /* ulFlags for CM_Create_DevNode[_Ex]A/W */
181 #define CM_CREATE_DEVNODE_NORMAL 0x00000000
182 #define CM_CREATE_DEVNODE_NO_WAIT_INSTALL 0x00000001
183 #define CM_CREATE_DEVNODE_PHANTOM 0x00000002
184 #define CM_CREATE_DEVNODE_GENERATE_ID 0x00000004
185 #define CM_CREATE_DEVNODE_DO_NOT_INSTALL 0x00000008
186 #define CM_CREATE_DEVNODE_BITS 0x0000000F
187
188 #define CM_CREATE_DEVINST_NORMAL CM_CREATE_DEVNODE_NORMAL
189 #define CM_CREATE_DEVINST_NO_WAIT_INSTALL CM_CREATE_DEVNODE_NO_WAIT_INSTALL
190 #define CM_CREATE_DEVINST_PHANTOM CM_CREATE_DEVNODE_PHANTOM
191 #define CM_CREATE_DEVINST_GENERATE_ID CM_CREATE_DEVNODE_GENERATE_ID
192 #define CM_CREATE_DEVINST_DO_NOT_INSTALL CM_CREATE_DEVNODE_DO_NOT_INSTALL
193 #define CM_CREATE_DEVINST_BITS CM_CREATE_DEVNODE_BITS
194
195 /* ulFlags for CM_Set_HW_Prof_Flags[_Ex]A/W */
196 #define CM_SET_HW_PROF_FLAGS_UI_NOT_OK 0x00000001
197 #define CM_SET_HW_PROF_FLAGS_BITS 0x00000001
198
199 /* ulFlags for Log_Conf functions */
200 #define BASIC_LOG_CONF 0x00000000
201 #define FILTERED_LOG_CONF 0x00000001
202 #define ALLOC_LOG_CONF 0x00000002
203 #define BOOT_LOG_CONF 0x00000003
204 #define FORCED_LOG_CONF 0x00000004
205 #define OVERRIDE_LOG_CONF 0x00000005
206 #define NUM_LOG_CONF 0x00000006
207 #define LOG_CONF_BITS 0x00000007
208
209 #define PRIORITY_EQUAL_FIRST 0x00000008
210 #define PRIORITY_EQUAL_LAST 0x00000000
211 #define PRIORITY_BIT 0x00000008
212
213 #define CMP_MAGIC 0x01234567
214
215
216 CONFIGRET WINAPI CMP_Init_Detection( DWORD );
217 CONFIGRET WINAPI CMP_Report_LogOn( DWORD, DWORD );
218
219 CONFIGRET WINAPI CM_Add_Empty_Log_Conf( PLOG_CONF, DEVINST, PRIORITY, ULONG );
220 CONFIGRET WINAPI CM_Add_Empty_Log_Conf_Ex( PLOG_CONF, DEVINST, PRIORITY, ULONG, HMACHINE );
221 CONFIGRET WINAPI CM_Add_IDA( DEVINST, PSTR, ULONG );
222 CONFIGRET WINAPI CM_Add_IDW( DEVINST, PWSTR, ULONG );
223 #define CM_Add_ID WINELIB_NAME_AW(CM_Add_ID)
224 CONFIGRET WINAPI CM_Add_ID_ExA( DEVINST, PSTR, ULONG, HMACHINE );
225 CONFIGRET WINAPI CM_Add_ID_ExW( DEVINST, PWSTR, ULONG, HMACHINE );
226 #define CM_Add_ID_Ex WINELIB_NAME_AW(CM_Add_ID_Ex)
227 CONFIGRET WINAPI CM_Connect_MachineA( PCSTR, PHMACHINE );
228 CONFIGRET WINAPI CM_Connect_MachineW( PCWSTR, PHMACHINE );
229 #define CM_Connect_Machine WINELIB_NAME_AW(CM_Connect_Machine)
230 CONFIGRET WINAPI CM_Create_DevNodeA( PDEVINST, DEVINSTID_A, DEVINST, ULONG );
231 CONFIGRET WINAPI CM_Create_DevNodeW( PDEVINST, DEVINSTID_W, DEVINST, ULONG );
232 #define CM_Create_DevNode WINELIB_NAME_AW(CM_Create_DevNode)
233 CONFIGRET WINAPI CM_Create_DevNode_ExA( PDEVINST, DEVINSTID_A, DEVINST, ULONG, HANDLE );
234 CONFIGRET WINAPI CM_Create_DevNode_ExW( PDEVINST, DEVINSTID_W, DEVINST, ULONG, HANDLE );
235 #define CM_Create_DevNode_Ex WINELIB_NAME_AW(CM_Create_DevNode_Ex)
236 CONFIGRET WINAPI CM_Delete_Class_Key( LPGUID, ULONG );
237 CONFIGRET WINAPI CM_Delete_Class_Key_Ex( LPGUID, ULONG, HANDLE );
238 CONFIGRET WINAPI CM_Delete_DevNode_Key( DEVNODE, ULONG, ULONG );
239 CONFIGRET WINAPI CM_Delete_DevNode_Key_Ex( DEVNODE, ULONG, ULONG, HANDLE );
240 CONFIGRET WINAPI CM_Disable_DevNode( DEVINST, ULONG );
241 CONFIGRET WINAPI CM_Disable_DevNode_Ex( DEVINST, ULONG, HMACHINE );
242 CONFIGRET WINAPI CM_Disconnect_Machine( HMACHINE );
243 CONFIGRET WINAPI CM_Enable_DevNode( DEVINST, ULONG );
244 CONFIGRET WINAPI CM_Enable_DevNode_Ex( DEVINST, ULONG, HMACHINE );
245 CONFIGRET WINAPI CM_Enumerate_Classes( ULONG, LPGUID, ULONG );
246 CONFIGRET WINAPI CM_Enumerate_Classes_Ex( ULONG, LPGUID, ULONG, HMACHINE );
247 CONFIGRET WINAPI CM_Enumerate_EnumeratorsA( ULONG, PCHAR, PULONG, ULONG );
248 CONFIGRET WINAPI CM_Enumerate_EnumeratorsW( ULONG, PWCHAR, PULONG, ULONG );
249 #define CM_Enumerate_Enumerators WINELIB_NAME_AW(CM_Enumerate_Enumerators)
250 CONFIGRET WINAPI CM_Enumerate_Enumerators_ExA( ULONG, PCHAR, PULONG, ULONG, HMACHINE );
251 CONFIGRET WINAPI CM_Enumerate_Enumerators_ExW( ULONG, PWCHAR, PULONG, ULONG, HMACHINE );
252 #define CM_Enumerate_Enumerators_Ex WINELIB_NAME_AW(CM_Enumerate_Enumerators_Ex)
253 CONFIGRET WINAPI CM_Free_Log_Conf( LOG_CONF, ULONG );
254 CONFIGRET WINAPI CM_Free_Log_Conf_Ex( LOG_CONF, ULONG, HMACHINE );
255 CONFIGRET WINAPI CM_Free_Log_Conf_Handle( LOG_CONF );
256 CONFIGRET WINAPI CM_Get_Child( PDEVINST, DEVINST, ULONG );
257 CONFIGRET WINAPI CM_Get_Child_Ex( PDEVINST, DEVINST, ULONG, HMACHINE );
258 CONFIGRET WINAPI CM_Get_Class_Key_NameA( LPGUID, LPSTR, PULONG, ULONG );
259 CONFIGRET WINAPI CM_Get_Class_Key_NameW( LPGUID, LPWSTR, PULONG, ULONG );
260 #define CM_Get_Class_Key_Name WINELIB_NAME_AW(CM_Get_Class_Key_Name)
261 CONFIGRET WINAPI CM_Get_Class_Key_Name_ExA( LPGUID, LPSTR, PULONG, ULONG, HMACHINE );
262 CONFIGRET WINAPI CM_Get_Class_Key_Name_ExW( LPGUID, LPWSTR, PULONG, ULONG, HMACHINE );
263 #define CM_Get_Class_Key_Name_Ex WINELIB_NAME_AW(CM_Get_Class_Key_Name_Ex)
264 CONFIGRET WINAPI CM_Get_Class_NameA( LPGUID, PCHAR, PULONG, ULONG );
265 CONFIGRET WINAPI CM_Get_Class_NameW( LPGUID, PWCHAR, PULONG, ULONG );
266 #define CM_Get_Class_Name WINELIB_NAME_AW(CM_Get_Class_Name)
267 CONFIGRET WINAPI CM_Get_Class_Name_ExA( LPGUID, PCHAR, PULONG, ULONG, HMACHINE );
268 CONFIGRET WINAPI CM_Get_Class_Name_ExW( LPGUID, PWCHAR, PULONG, ULONG, HMACHINE );
269 #define CM_Get_Class_Name_Ex WINELIB_NAME_AW(CM_Get_Class_Name_Ex)
270 CONFIGRET WINAPI CM_Get_Depth( PULONG, DEVINST, ULONG );
271 CONFIGRET WINAPI CM_Get_Depth_Ex( PULONG, DEVINST, ULONG, HMACHINE );
272 CONFIGRET WINAPI CM_Get_DevNode_Registry_PropertyA( DEVINST, ULONG, PULONG, PVOID, PULONG, ULONG );
273 CONFIGRET WINAPI CM_Get_DevNode_Registry_PropertyW( DEVINST, ULONG, PULONG, PVOID, PULONG, ULONG );
274 #define CM_Get_DevNode_Registry_Property WINELIB_NAME_AW(CM_Get_DevNode_Registry_Property)
275 CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExA( DEVINST, ULONG, PULONG, PVOID, PULONG, ULONG, HMACHINE );
276 CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExW( DEVINST, ULONG, PULONG, PVOID, PULONG, ULONG, HMACHINE );
277 #define CM_Get_DevNode_Registry_Property_Ex WINELIB_NAME_AW(CM_Get_DevNode_Registry_Property_Ex)
278 CONFIGRET WINAPI CM_Get_DevNode_Status( PULONG, PULONG, DEVINST, ULONG );
279 CONFIGRET WINAPI CM_Get_DevNode_Status_Ex( PULONG, PULONG, DEVINST, ULONG, HMACHINE );
280 CONFIGRET WINAPI CM_Get_Device_IDA( DEVINST, PCHAR, ULONG, ULONG );
281 CONFIGRET WINAPI CM_Get_Device_IDW( DEVINST, PWCHAR, ULONG, ULONG );
282 #define CM_Get_Device_ID WINELIB_NAME_AW(CM_Get_Device_ID)
283 CONFIGRET WINAPI CM_Get_Device_ID_ExW( DEVINST, PWCHAR, ULONG, ULONG, HMACHINE );
284 CONFIGRET WINAPI CM_Get_Device_ID_ExA( DEVINST, PCHAR, ULONG, ULONG, HMACHINE );
285 #define CM_Get_Device_ID_Ex WINELIB_NAME_AW(CM_Get_Device_ID_Ex)
286 CONFIGRET WINAPI CM_Get_Device_ID_ListA( PCSTR, PCHAR, ULONG, ULONG );
287 CONFIGRET WINAPI CM_Get_Device_ID_ListW( PCWSTR, PWCHAR, ULONG, ULONG );
288 #define CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List)
289 CONFIGRET WINAPI CM_Get_Device_ID_List_ExA( PCSTR, PCHAR, ULONG, ULONG, HMACHINE );
290 CONFIGRET WINAPI CM_Get_Device_ID_List_ExW( PCWSTR, PWCHAR, ULONG, ULONG, HMACHINE );
291 #define CM_Get_Device_ID_List_Ex WINELIB_NAME_AW(CM_Get_Device_ID_List_Ex)
292 CONFIGRET WINAPI CM_Get_Device_ID_List_SizeA( PULONG, PCSTR, ULONG );
293 CONFIGRET WINAPI CM_Get_Device_ID_List_SizeW( PULONG, PCWSTR, ULONG );
294 #define CM_Get_Device_ID_List_Size WINELIB_NAME_AW(CM_Get_Device_ID_List_Size)
295 CONFIGRET WINAPI CM_Get_Device_ID_List_Size_ExA( PULONG, PCSTR, ULONG, HMACHINE );
296 CONFIGRET WINAPI CM_Get_Device_ID_List_Size_ExW( PULONG, PCWSTR, ULONG, HMACHINE );
297 #define CM_Get_Device_ID_List_Size_Ex WINELIB_NAME_AW(CM_Get_Device_ID_List_Size_Ex)
298 CONFIGRET WINAPI CM_Get_Device_ID_Size( PULONG, DEVINST, ULONG );
299 CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex( PULONG, DEVINST, ULONG, HMACHINE );
300 CONFIGRET WINAPI CM_Get_First_Log_Conf( PLOG_CONF, DEVINST, ULONG );
301 CONFIGRET WINAPI CM_Get_First_Log_Conf_Ex( PLOG_CONF, DEVINST, ULONG, HMACHINE );
302 CONFIGRET WINAPI CM_Get_Global_State( PULONG, ULONG );
303 CONFIGRET WINAPI CM_Get_Global_State_Ex( PULONG, ULONG, HMACHINE );
304 CONFIGRET WINAPI CM_Set_HW_Prof( ULONG, ULONG );
305 CONFIGRET WINAPI CM_Set_HW_Prof_Ex( ULONG, ULONG, HMACHINE );
306 CONFIGRET WINAPI CM_Get_HW_Prof_FlagsA( DEVINSTID_A, ULONG, PULONG, ULONG );
307 CONFIGRET WINAPI CM_Get_HW_Prof_FlagsW( DEVINSTID_W, ULONG, PULONG, ULONG );
308 #define CM_Get_HW_Prof_Flags WINELIB_NAME_AW(CM_Get_HW_Prof_Flags)
309 CONFIGRET WINAPI CM_Get_HW_Prof_Flags_ExA( DEVINSTID_A, ULONG, PULONG, ULONG, HMACHINE );
310 CONFIGRET WINAPI CM_Get_HW_Prof_Flags_ExW( DEVINSTID_W, ULONG, PULONG, ULONG, HMACHINE );
311 #define CM_Get_HW_Prof_Flags_Ex WINELIB_NAME_AW(CM_Get_HW_Prof_Flags_Ex)
312 CONFIGRET WINAPI CM_Get_Log_Conf_Priority( LOG_CONF, PPRIORITY, ULONG );
313 CONFIGRET WINAPI CM_Get_Log_Conf_Priority_Ex( LOG_CONF, PPRIORITY, ULONG, HMACHINE );
314 CONFIGRET WINAPI CM_Get_Next_Log_Conf( PLOG_CONF, LOG_CONF, ULONG );
315 CONFIGRET WINAPI CM_Get_Next_Log_Conf_Ex( PLOG_CONF, LOG_CONF, ULONG, HMACHINE );
316 CONFIGRET WINAPI CM_Get_Parent( PDEVINST, DEVINST, ULONG );
317 CONFIGRET WINAPI CM_Get_Parent_Ex( PDEVINST, DEVINST, ULONG, HMACHINE );
318 CONFIGRET WINAPI CM_Get_Sibling( PDEVINST, DEVINST, ULONG );
319 CONFIGRET WINAPI CM_Get_Sibling_Ex( PDEVINST, DEVINST, ULONG, HMACHINE );
320 WORD WINAPI CM_Get_Version( VOID );
321 WORD WINAPI CM_Get_Version_Ex( HMACHINE );
322
323 CONFIGRET WINAPI CM_Is_Dock_Station_Present( PBOOL );
324 CONFIGRET WINAPI CM_Is_Dock_Station_Present_Ex( PBOOL, HMACHINE );
325 CONFIGRET WINAPI CM_Locate_DevNodeA( PDEVINST, DEVINSTID_A, ULONG );
326 CONFIGRET WINAPI CM_Locate_DevNodeW( PDEVINST, DEVINSTID_W, ULONG );
327 #define CM_Locate_DevNode WINELIB_NAME_AW(CM_Locate_DevNode)
328 CONFIGRET WINAPI CM_Locate_DevNode_ExA( PDEVINST, DEVINSTID_A, ULONG, HMACHINE );
329 CONFIGRET WINAPI CM_Locate_DevNode_ExW( PDEVINST, DEVINSTID_W, ULONG, HMACHINE );
330 #define CM_Locate_DevNode_Ex WINELIB_NAME_AW(CM_Locate_DevNode_Ex)
331
332 CONFIGRET WINAPI CM_Move_DevNode( DEVINST, DEVINST, ULONG );
333 CONFIGRET WINAPI CM_Move_DevNode_Ex( DEVINST, DEVINST, ULONG, HMACHINE );
334
335 CONFIGRET WINAPI CM_Open_Class_KeyA( LPGUID, LPCSTR, REGSAM, REGDISPOSITION, PHKEY, ULONG );
336 CONFIGRET WINAPI CM_Open_Class_KeyW( LPGUID, LPCWSTR, REGSAM, REGDISPOSITION, PHKEY, ULONG );
337 #define CM_Open_Class_Key WINELIB_NAME_AW(CM_Open_Class_Key)
338 CONFIGRET WINAPI CM_Open_Class_Key_ExA( LPGUID, LPCSTR, REGSAM, REGDISPOSITION, PHKEY, ULONG, HMACHINE );
339 CONFIGRET WINAPI CM_Open_Class_Key_ExW( LPGUID, LPCWSTR, REGSAM, REGDISPOSITION, PHKEY, ULONG, HMACHINE );
340 #define CM_Open_Class_Key_Ex WINELIB_NAME_AW(CM_Open_Class_Key_Ex)
341 CONFIGRET WINAPI CM_Open_DevNode_Key( DEVINST, REGSAM, ULONG, REGDISPOSITION, PHKEY, ULONG );
342 CONFIGRET WINAPI CM_Open_DevNode_Key_Ex( DEVINST, REGSAM, ULONG, REGDISPOSITION, PHKEY, ULONG, HMACHINE );
343
344 CONFIGRET WINAPI CM_Reenumerate_DevNode( DEVINST, ULONG );
345 CONFIGRET WINAPI CM_Reenumerate_DevNode_Ex( DEVINST, ULONG, HMACHINE );
346
347 CONFIGRET WINAPI CM_Request_Eject_PC( VOID );
348 CONFIGRET WINAPI CM_Request_Eject_PC_Ex( HMACHINE );
349
350 CONFIGRET WINAPI CM_Run_Detection( ULONG );
351 CONFIGRET WINAPI CM_Run_Detection_Ex( ULONG, HMACHINE );
352 CONFIGRET WINAPI CM_Set_DevNode_Problem( DEVINST, ULONG, ULONG );
353 CONFIGRET WINAPI CM_Set_DevNode_Problem_Ex( DEVINST, ULONG, ULONG, HMACHINE );
354 CONFIGRET WINAPI CM_Set_DevNode_Registry_PropertyA( DEVINST, ULONG, PCVOID, ULONG, ULONG );
355 CONFIGRET WINAPI CM_Set_DevNode_Registry_PropertyW( DEVINST, ULONG, PCVOID, ULONG, ULONG );
356 #define CM_Set_DevNode_Registry_Property WINELIB_NAME_AW(CM_Set_DevNode_Registry_Property)
357 CONFIGRET WINAPI CM_Set_DevNode_Registry_Property_ExA( DEVINST, ULONG, PCVOID, ULONG, ULONG, HMACHINE );
358 CONFIGRET WINAPI CM_Set_DevNode_Registry_Property_ExW( DEVINST, ULONG, PCVOID, ULONG, ULONG, HMACHINE );
359 #define CM_Set_DevNode_Registry_Property_Ex WINELIB_NAME_AW(CM_Set_DevNode_Registry_Property_Ex)
360
361 CONFIGRET WINAPI CM_Set_HW_Prof_FlagsA( DEVINSTID_A, ULONG, ULONG, ULONG );
362 CONFIGRET WINAPI CM_Set_HW_Prof_FlagsW( DEVINSTID_W, ULONG, ULONG, ULONG );
363 #define CM_Set_HW_Prof_Flags WINELIB_NAME_AW(CM_Set_HW_Prof_Flags)
364 CONFIGRET WINAPI CM_Set_HW_Prof_Flags_ExA( DEVINSTID_A, ULONG, ULONG, ULONG, HMACHINE );
365 CONFIGRET WINAPI CM_Set_HW_Prof_Flags_ExW( DEVINSTID_W, ULONG, ULONG, ULONG, HMACHINE );
366 #define CM_Set_HW_Prof_Flags_Ex WINELIB_NAME_AW(CM_Set_HW_Prof_Flags_Ex)
367 CONFIGRET WINAPI CM_Setup_DevNode( DEVINST, ULONG );
368 CONFIGRET WINAPI CM_Setup_DevNode_Ex( DEVINST, ULONG, HMACHINE );
369
370 CONFIGRET WINAPI CM_Uninstall_DevNode( DEVINST, ULONG );
371 CONFIGRET WINAPI CM_Uninstall_DevNode_Ex( DEVINST, ULONG, HMACHINE );
372
373 #endif /* _CFGMGR32_H_ */