inetcpl: Implement LaunchInternetControlPanel.
[wine.git] / dlls / setupapi / stubs.c
blob643d2df00f917446893c6c28c096118e5f2a9fc4
1 /*
2 * SetupAPI stubs
4 * Copyright 2000 James Hatheway
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.
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.
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
21 #include <stdarg.h>
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"
33 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
35 /***********************************************************************
36 * CM_Connect_MachineA (SETUPAPI.@)
38 CONFIGRET WINAPI CM_Connect_MachineA(PCSTR name, PHMACHINE machine)
40 FIXME("(%s %p) stub\n", name, machine);
41 return CR_ACCESS_DENIED;
44 /***********************************************************************
45 * CM_Connect_MachineW (SETUPAPI.@)
47 CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR name, PHMACHINE machine)
49 FIXME("\n");
50 return CR_ACCESS_DENIED;
53 /***********************************************************************
54 * CM_Create_DevNodeA (SETUPAPI.@)
56 CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, DEVINST dnParent, ULONG ulFlags)
58 FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, pDeviceID, dnParent, ulFlags);
59 return CR_SUCCESS;
62 /***********************************************************************
63 * CM_Create_DevNodeW (SETUPAPI.@)
65 CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, DEVINST dnParent, ULONG ulFlags)
67 FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, debugstr_w(pDeviceID), dnParent, ulFlags);
68 return CR_SUCCESS;
71 /***********************************************************************
72 * CM_Disconnect_Machine (SETUPAPI.@)
74 CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
76 FIXME("\n");
77 return CR_SUCCESS;
81 /***********************************************************************
82 * CM_Get_Device_ID_ExW (SETUPAPI.@)
84 DWORD WINAPI CM_Get_Device_ID_ExW(
85 DEVINST dnDevInst, PWCHAR Buffer, ULONG BufferLen, ULONG ulFlags, HMACHINE hMachine)
87 FIXME("0x%08x %p 0x%08x 0x%08x %p\n", dnDevInst, Buffer, BufferLen, ulFlags, hMachine);
88 return CR_SUCCESS;
91 /***********************************************************************
92 * CM_Get_Device_ID_ListA (SETUPAPI.@)
94 CONFIGRET WINAPI CM_Get_Device_ID_ListA(
95 PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
97 FIXME("%s %p %d 0x%08x\n", debugstr_a(pszFilter), Buffer, BufferLen, ulFlags);
99 if (BufferLen >= 2) Buffer[0] = Buffer[1] = 0;
100 return CR_SUCCESS;
103 /***********************************************************************
104 * CM_Get_Device_ID_ListW (SETUPAPI.@)
106 CONFIGRET WINAPI CM_Get_Device_ID_ListW(
107 PCWSTR pszFilter, PWCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
109 FIXME("%s %p %d 0x%08x\n", debugstr_w(pszFilter), Buffer, BufferLen, ulFlags);
111 if (BufferLen >= 2) Buffer[0] = Buffer[1] = 0;
112 return CR_SUCCESS;
115 /***********************************************************************
116 * CM_Get_Parent (SETUPAPI.@)
118 DWORD WINAPI CM_Get_Parent(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags)
120 FIXME("%p 0x%08x 0x%08x stub\n", pdnDevInst, dnDevInst, ulFlags);
121 *pdnDevInst = dnDevInst;
122 return CR_SUCCESS;
125 /***********************************************************************
126 * SetupInitializeFileLogW(SETUPAPI.@)
128 HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
130 FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
131 return INVALID_HANDLE_VALUE;
134 /***********************************************************************
135 * SetupInitializeFileLogA(SETUPAPI.@)
137 HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
139 FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
140 return INVALID_HANDLE_VALUE;
143 /***********************************************************************
144 * SetupTerminateFileLog(SETUPAPI.@)
146 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
148 FIXME ("Stub %p\n",FileLogHandle);
149 return TRUE;
152 /***********************************************************************
153 * RegistryDelnode(SETUPAPI.@)
155 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
157 FIXME("%08x %08x: stub\n", x, y);
158 return FALSE;
161 /***********************************************************************
162 * SetupCloseLog(SETUPAPI.@)
164 void WINAPI SetupCloseLog(void)
166 FIXME("() stub\n");
169 /***********************************************************************
170 * SetupLogErrorW(SETUPAPI.@)
172 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
174 FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
175 return TRUE;
178 /***********************************************************************
179 * SetupOpenLog(SETUPAPI.@)
181 BOOL WINAPI SetupOpenLog(BOOL Reserved)
183 FIXME("(%d) stub\n", Reserved);
184 return TRUE;
187 /***********************************************************************
188 * SetupPromptReboot(SETUPAPI.@)
190 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
192 FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
193 return 0;
196 /***********************************************************************
197 * SetupQueryDrivesInDiskSpaceListA (SETUPAPI.@)
199 BOOL WINAPI SetupQueryDrivesInDiskSpaceListA(HDSKSPC disk_space, PSTR return_buffer, DWORD return_buffer_size, PDWORD required_size)
201 FIXME("%p, %p, %d, %p\n", disk_space, return_buffer, return_buffer_size, required_size);
202 return FALSE;
205 /***********************************************************************
206 * SetupQueryDrivesInDiskSpaceListW (SETUPAPI.@)
208 BOOL WINAPI SetupQueryDrivesInDiskSpaceListW(HDSKSPC disk_space, PWSTR return_buffer, DWORD return_buffer_size, PDWORD required_size)
210 FIXME("%p, %p, %d, %p\n", disk_space, return_buffer, return_buffer_size, required_size);
211 return FALSE;
214 /***********************************************************************
215 * SetupSetSourceListA (SETUPAPI.@)
217 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
219 FIXME("0x%08x %p %d\n", flags, list, count);
220 return FALSE;
223 /***********************************************************************
224 * SetupSetSourceListW (SETUPAPI.@)
226 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
228 FIXME("0x%08x %p %d\n", flags, list, count);
229 return FALSE;
232 /***********************************************************************
233 * SetupDiGetINFClassA (SETUPAPI.@)
235 BOOL WINAPI SetupDiGetINFClassA(PCSTR inf, LPGUID class_guid, PSTR class_name,
236 DWORD size, PDWORD required_size)
238 FIXME("%s %p %p %d %p\n", debugstr_a(inf), class_guid, class_name, size, required_size);
239 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
240 return FALSE;
243 /***********************************************************************
244 * SetupDiGetINFClassW (SETUPAPI.@)
246 BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
247 DWORD size, PDWORD required_size)
249 FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size);
250 return FALSE;
253 /***********************************************************************
254 * SetupDiDestroyClassImageList (SETUPAPI.@)
256 BOOL WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData)
258 FIXME("(%p) stub\n", ClassListImageData);
259 return TRUE;
262 /***********************************************************************
263 * SetupDiGetClassImageList (SETUPAPI.@)
265 BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
267 FIXME("(%p) stub\n", ClassImageListData);
268 return FALSE;
271 /***********************************************************************
272 * SetupDiGetClassImageList (SETUPAPI.@)
274 BOOL WINAPI SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData, const GUID *class, PINT index)
276 FIXME("%p %p %p\n", ClassImageListData, class, index);
277 return FALSE;
280 /***********************************************************************
281 * SetupDiOpenDeviceInfoA (SETUPAPI.@)
283 BOOL WINAPI SetupDiOpenDeviceInfoA(HDEVINFO DeviceInfoSet, PCSTR DeviceInstanceId,
284 HWND hwndParent, DWORD OpenFlags, PSP_DEVINFO_DATA DeviceInfoData)
286 FIXME("%p %s %p 0x%08x %p\n", DeviceInfoSet, debugstr_a(DeviceInstanceId),
287 hwndParent, OpenFlags, DeviceInfoData);
288 return FALSE;
291 /***********************************************************************
292 * SetupDiOpenDeviceInfoW (SETUPAPI.@)
294 BOOL WINAPI SetupDiOpenDeviceInfoW(HDEVINFO DeviceInfoSet, PCWSTR DeviceInstanceId,
295 HWND hwndParent, DWORD OpenFlags, PSP_DEVINFO_DATA DeviceInfoData)
297 FIXME("%p %s %p 0x%08x %p\n", DeviceInfoSet, debugstr_w(DeviceInstanceId),
298 hwndParent, OpenFlags, DeviceInfoData);
299 return FALSE;
302 /***********************************************************************
303 * CM_Locate_DevNodeA (SETUPAPI.@)
305 CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags)
307 FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags);
309 return CR_FAILURE;
312 /***********************************************************************
313 * CM_Locate_DevNodeW (SETUPAPI.@)
315 CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags)
317 FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags);
319 return CR_FAILURE;
322 /***********************************************************************
323 * CM_Locate_DevNode_ExA (SETUPAPI.@)
325 CONFIGRET WINAPI CM_Locate_DevNode_ExA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags, HMACHINE hMachine)
327 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags, hMachine);
329 return CR_FAILURE;
332 /***********************************************************************
333 * CM_Locate_DevNode_ExW (SETUPAPI.@)
335 CONFIGRET WINAPI CM_Locate_DevNode_ExW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags, HMACHINE hMachine)
337 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags, hMachine);
339 return CR_FAILURE;
342 /***********************************************************************
343 * CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
345 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(PULONG len, LPGUID class, DEVINSTID_A id,
346 ULONG flags, HMACHINE machine)
348 FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_a(id), flags, machine);
349 return CR_FAILURE;
352 /***********************************************************************
353 * CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
355 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class, DEVINSTID_W id,
356 ULONG flags, HMACHINE machine)
358 FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine);
359 return CR_FAILURE;
362 /***********************************************************************
363 * CM_Enumerate_Classes (SETUPAPI.@)
365 CONFIGRET WINAPI CM_Enumerate_Classes(ULONG index, LPGUID class, ULONG flags)
367 FIXME("%u %p 0x%08x: stub\n", index, class, flags);
368 return CR_NO_SUCH_VALUE;
371 /***********************************************************************
372 * SetupLogFileW (SETUPAPI.@)
374 BOOL WINAPI SetupLogFileW(
375 HSPFILELOG FileLogHandle,
376 PCWSTR LogSectionName,
377 PCWSTR SourceFileName,
378 PCWSTR TargetFileName,
379 DWORD Checksum,
380 PCWSTR DiskTagfile,
381 PCWSTR DiskDescription,
382 PCWSTR OtherInfo,
383 DWORD Flags )
385 FIXME("(%p, %p, '%s', '%s', %d, %p, %p, %p, %d): stub\n", FileLogHandle,
386 debugstr_w(LogSectionName), debugstr_w(SourceFileName),
387 debugstr_w(TargetFileName), Checksum, debugstr_w(DiskTagfile),
388 debugstr_w(DiskDescription), debugstr_w(OtherInfo), Flags);
390 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
391 return FALSE;
394 /***********************************************************************
395 * SetupLogFileA (SETUPAPI.@)
397 BOOL WINAPI SetupLogFileA(
398 HSPFILELOG FileLogHandle,
399 PCSTR LogSectionName,
400 PCSTR SourceFileName,
401 PCSTR TargetFileName,
402 DWORD Checksum,
403 PCSTR DiskTagfile,
404 PCSTR DiskDescription,
405 PCSTR OtherInfo,
406 DWORD Flags )
408 FIXME("(%p, %p, '%s', '%s', %d, %p, %p, %p, %d): stub\n", FileLogHandle,
409 LogSectionName, SourceFileName, TargetFileName, Checksum, DiskTagfile,
410 DiskDescription, OtherInfo, Flags);
412 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
413 return FALSE;
416 /***********************************************************************
417 * SetupDiBuildDriverInfoList (SETUPAPI.@)
420 BOOL WINAPI SetupDiBuildDriverInfoList(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, DWORD DriverType)
422 FIXME(": stub %p, %p, %d\n", DeviceInfoSet, DeviceInfoData, DriverType);
424 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
425 return FALSE;
428 /***********************************************************************
429 * SetupDiDeleteDeviceInfo (SETUPAPI.@)
432 BOOL WINAPI SetupDiDeleteDeviceInfo(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData)
434 FIXME(": stub %p, %p\n", DeviceInfoSet, DeviceInfoData);
436 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
437 return FALSE;
440 /***********************************************************************
441 * SetupDiLoadClassIcon (SETUPAPI.@)
443 BOOL WINAPI SetupDiLoadClassIcon(const GUID *ClassGuid, HICON *LargeIcon, PINT MiniIconIndex)
445 FIXME(": stub %s, %p, %p\n", debugstr_guid(ClassGuid), LargeIcon, MiniIconIndex);
447 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
448 return FALSE;