shdocvw: Support URLs passed by reference in WebBrowser_Navigate2.
[wine] / dlls / setupapi / stubs.c
1 /*
2  * SetupAPI stubs
3  *
4  * Copyright 2000 James Hatheway
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include <stdarg.h>
22
23 #include "wine/debug.h"
24 #include "windef.h"
25 #include "winbase.h"
26 #include "wingdi.h"
27 #include "winuser.h"
28 #include "winreg.h"
29 #include "cfgmgr32.h"
30 #include "setupapi.h"
31 #include "winnls.h"
32
33 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
34
35 /***********************************************************************
36  *              TPWriteProfileString (SETUPX.62)
37  */
38 BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
39 {
40     FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
41     return TRUE;
42 }
43
44
45 /***********************************************************************
46  *              suErrorToIds  (SETUPX.61)
47  */
48 DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
49 {
50     FIXME( "%x %x: stub\n", w1, w2 );
51     return 0;
52 }
53
54 /***********************************************************************
55  *              CM_Connect_MachineA  (SETUPAPI.@)
56  */
57 CONFIGRET WINAPI CM_Connect_MachineA(PCSTR name, PHMACHINE machine)
58 {
59   FIXME("(%s %p) stub\n", name, machine);
60   return CR_ACCESS_DENIED;
61 }
62
63 /***********************************************************************
64  *              CM_Connect_MachineW  (SETUPAPI.@)
65  */
66 CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR name, PHMACHINE machine)
67 {
68   FIXME("\n");
69   return  CR_ACCESS_DENIED;
70 }
71
72 /***********************************************************************
73  *              CM_Create_DevNodeA  (SETUPAPI.@)
74  */
75 CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, DEVINST dnParent, ULONG ulFlags)
76 {
77   FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, pDeviceID, dnParent, ulFlags);
78   return CR_SUCCESS;
79 }
80
81 /***********************************************************************
82  *              CM_Create_DevNodeW  (SETUPAPI.@)
83  */
84 CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, DEVINST dnParent, ULONG ulFlags)
85 {
86   FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, debugstr_w(pDeviceID), dnParent, ulFlags);
87   return CR_SUCCESS;
88 }
89
90 /***********************************************************************
91  *              CM_Disconnect_Machine  (SETUPAPI.@)
92  */
93 CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
94 {
95   FIXME("\n");
96   return  CR_SUCCESS;
97
98 }
99
100 /***********************************************************************
101  *             CM_Get_Device_ID_ListA  (SETUPAPI.@)
102  */
103 CONFIGRET WINAPI CM_Get_Device_ID_ListA(
104     PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
105 {
106     FIXME("%s %p %d 0x%08x\n", debugstr_a(pszFilter), Buffer, BufferLen, ulFlags);
107
108     if (BufferLen >= 2) Buffer[0] = Buffer[1] = 0;
109     return CR_SUCCESS;
110 }
111
112 /***********************************************************************
113  *             CM_Get_Device_ID_ListW  (SETUPAPI.@)
114  */
115 CONFIGRET WINAPI CM_Get_Device_ID_ListW(
116     PCWSTR pszFilter, PWCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
117 {
118     FIXME("%s %p %d 0x%08x\n", debugstr_w(pszFilter), Buffer, BufferLen, ulFlags);
119
120     if (BufferLen >= 2) Buffer[0] = Buffer[1] = 0;
121     return CR_SUCCESS;
122 }
123
124 /***********************************************************************
125  *              CM_Get_Parent (SETUPAPI.@)
126  */
127 DWORD WINAPI CM_Get_Parent(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags)
128 {
129     FIXME("%p 0x%08x 0x%08x stub\n", pdnDevInst, dnDevInst, ulFlags);
130     *pdnDevInst = dnDevInst;
131     return CR_SUCCESS;
132 }
133
134 /***********************************************************************
135  *              SetupInitializeFileLogW(SETUPAPI.@)
136  */
137 HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
138 {
139     FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
140     return INVALID_HANDLE_VALUE;
141 }
142
143 /***********************************************************************
144  *              SetupInitializeFileLogA(SETUPAPI.@)
145  */
146 HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
147 {
148     FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
149     return INVALID_HANDLE_VALUE;
150 }
151
152 /***********************************************************************
153  *              SetupTerminateFileLog(SETUPAPI.@)
154  */
155 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
156 {
157     FIXME ("Stub %p\n",FileLogHandle);
158     return TRUE;
159 }
160
161 /***********************************************************************
162  *              RegistryDelnode(SETUPAPI.@)
163  */
164 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
165 {
166     FIXME("%08x %08x: stub\n", x, y);
167     return FALSE;
168 }
169
170 /***********************************************************************
171  *      SetupCloseLog(SETUPAPI.@)
172  */
173 void WINAPI SetupCloseLog(void)
174 {
175     FIXME("() stub\n");
176 }
177
178 /***********************************************************************
179  *      SetupLogErrorW(SETUPAPI.@)
180  */
181 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
182 {
183     FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
184     return TRUE;
185 }
186
187 /***********************************************************************
188  *      SetupOpenLog(SETUPAPI.@)
189  */
190 BOOL WINAPI SetupOpenLog(BOOL Reserved)
191 {
192     FIXME("(%d) stub\n", Reserved);
193     return TRUE;
194 }
195
196 /***********************************************************************
197  *      SetupPromptReboot(SETUPAPI.@)
198  */
199 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
200 {
201     FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
202     return 0;
203 }
204
205 /***********************************************************************
206  *      SetupSetSourceListA (SETUPAPI.@)
207  */
208 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
209 {
210     FIXME("0x%08x %p %d\n", flags, list, count);
211     return FALSE;
212 }
213
214 /***********************************************************************
215  *      SetupSetSourceListW (SETUPAPI.@)
216  */
217 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
218 {
219     FIXME("0x%08x %p %d\n", flags, list, count);
220     return FALSE;
221 }
222
223 /***********************************************************************
224  *      SetupDiGetINFClassA (SETUPAPI.@)
225  */
226 BOOL WINAPI SetupDiGetINFClassA(PCSTR inf, LPGUID class_guid, PSTR class_name,
227         DWORD size, PDWORD required_size)
228 {
229     FIXME("%s %p %p %d %p\n", debugstr_a(inf), class_guid, class_name, size, required_size);
230     return FALSE;
231 }
232
233 /***********************************************************************
234  *      SetupDiGetINFClassW (SETUPAPI.@)
235  */
236 BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
237         DWORD size, PDWORD required_size)
238 {
239     FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size);
240     return FALSE;
241 }
242
243 /***********************************************************************
244  *      SetupDiDestroyClassImageList (SETUPAPI.@)
245  */
246 BOOL WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData)
247 {
248     FIXME("(%p) stub\n", ClassListImageData);
249     return TRUE;
250 }
251
252 /***********************************************************************
253  *      SetupDiGetClassImageList (SETUPAPI.@)
254  */
255 BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
256 {
257     FIXME("(%p) stub\n", ClassImageListData);
258     return FALSE;
259 }
260
261 /***********************************************************************
262  *      CM_Locate_DevNodeA (SETUPAPI.@)
263  */
264 CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags)
265 {
266     FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags);
267
268     return CR_FAILURE;
269 }
270
271 /***********************************************************************
272  *      CM_Locate_DevNodeW (SETUPAPI.@)
273  */
274 CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags)
275 {
276     FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags);
277
278     return CR_FAILURE;
279 }
280
281 /***********************************************************************
282  *      CM_Locate_DevNode_ExA (SETUPAPI.@)
283  */
284 CONFIGRET WINAPI CM_Locate_DevNode_ExA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags, HMACHINE hMachine)
285 {
286     FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags, hMachine);
287
288     return CR_FAILURE;
289 }
290
291 /***********************************************************************
292  *      CM_Locate_DevNode_ExW (SETUPAPI.@)
293  */
294 CONFIGRET WINAPI CM_Locate_DevNode_ExW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags, HMACHINE hMachine)
295 {
296     FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags, hMachine);
297
298     return CR_FAILURE;
299 }
300
301 /***********************************************************************
302  *      CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
303  */
304 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(PULONG len, LPGUID class, DEVINSTID_A id,
305                                                        ULONG flags, HMACHINE machine)
306 {
307     FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_a(id), flags, machine);
308     return CR_FAILURE;
309 }
310
311 /***********************************************************************
312  *      CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
313  */
314 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class, DEVINSTID_W id,
315                                                        ULONG flags, HMACHINE machine)
316 {
317     FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine);
318     return CR_FAILURE;
319 }
320
321 /***********************************************************************
322  *      CM_Enumerate_Classes (SETUPAPI.@)
323  */
324 CONFIGRET WINAPI CM_Enumerate_Classes(ULONG index, LPGUID class, ULONG flags)
325 {
326     FIXME("%u %p 0x%08x: stub\n", index, class, flags);
327     return CR_NO_SUCH_VALUE;
328 }