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
23 #include "wine/debug.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)
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);
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);
71 /***********************************************************************
72 * CM_Disconnect_Machine (SETUPAPI.@)
74 CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
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);
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;
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;
115 /***********************************************************************
116 * CM_Get_Device_ID_List_SizeA (SETUPAPI.@)
118 CONFIGRET WINAPI CM_Get_Device_ID_List_SizeA( PULONG pulLen, PCSTR pszFilter, ULONG ulFlags )
120 FIXME("%p %s 0x%08x\n", pulLen, debugstr_a(pszFilter), ulFlags);
125 /***********************************************************************
126 * CM_Get_Device_ID_List_SizeW (SETUPAPI.@)
128 CONFIGRET WINAPI CM_Get_Device_ID_List_SizeW( PULONG pulLen, PCWSTR pszFilter, ULONG ulFlags )
130 FIXME("%p %s 0x%08x\n", pulLen, debugstr_w(pszFilter), ulFlags);
135 /***********************************************************************
136 * CM_Get_Parent (SETUPAPI.@)
138 DWORD WINAPI CM_Get_Parent(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags)
140 FIXME("%p 0x%08x 0x%08x stub\n", pdnDevInst, dnDevInst, ulFlags);
141 *pdnDevInst = dnDevInst;
145 /***********************************************************************
146 * SetupInitializeFileLogW(SETUPAPI.@)
148 HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
150 FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
151 return INVALID_HANDLE_VALUE;
154 /***********************************************************************
155 * SetupInitializeFileLogA(SETUPAPI.@)
157 HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
159 FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
160 return INVALID_HANDLE_VALUE;
163 /***********************************************************************
164 * SetupTerminateFileLog(SETUPAPI.@)
166 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
168 FIXME ("Stub %p\n",FileLogHandle);
172 /***********************************************************************
173 * RegistryDelnode(SETUPAPI.@)
175 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
177 FIXME("%08x %08x: stub\n", x, y);
181 /***********************************************************************
182 * SetupCloseLog(SETUPAPI.@)
184 void WINAPI SetupCloseLog(void)
189 /***********************************************************************
190 * SetupLogErrorW(SETUPAPI.@)
192 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
194 FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
198 /***********************************************************************
199 * SetupOpenLog(SETUPAPI.@)
201 BOOL WINAPI SetupOpenLog(BOOL Reserved)
203 FIXME("(%d) stub\n", Reserved);
207 /***********************************************************************
208 * SetupPromptReboot(SETUPAPI.@)
210 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
212 FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
216 /***********************************************************************
217 * SetupQueryDrivesInDiskSpaceListA (SETUPAPI.@)
219 BOOL WINAPI SetupQueryDrivesInDiskSpaceListA(HDSKSPC disk_space, PSTR return_buffer, DWORD return_buffer_size, PDWORD required_size)
221 FIXME("%p, %p, %d, %p\n", disk_space, return_buffer, return_buffer_size, required_size);
225 /***********************************************************************
226 * SetupQueryDrivesInDiskSpaceListW (SETUPAPI.@)
228 BOOL WINAPI SetupQueryDrivesInDiskSpaceListW(HDSKSPC disk_space, PWSTR return_buffer, DWORD return_buffer_size, PDWORD required_size)
230 FIXME("%p, %p, %d, %p\n", disk_space, return_buffer, return_buffer_size, required_size);
234 /***********************************************************************
235 * SetupAddToSourceListA (SETUPAPI.@)
237 BOOL WINAPI SetupAddToSourceListA(DWORD flags, PCSTR source)
239 FIXME("0x%08x %s\n", flags, debugstr_a(source));
243 /***********************************************************************
244 * SetupAddToSourceListW (SETUPAPI.@)
246 BOOL WINAPI SetupAddToSourceListW(DWORD flags, PCWSTR source)
248 FIXME("0x%08x %s\n", flags, debugstr_w(source));
252 /***********************************************************************
253 * SetupSetSourceListA (SETUPAPI.@)
255 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
257 FIXME("0x%08x %p %d\n", flags, list, count);
261 /***********************************************************************
262 * SetupSetSourceListW (SETUPAPI.@)
264 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
266 FIXME("0x%08x %p %d\n", flags, list, count);
270 /***********************************************************************
271 * SetupDiDestroyClassImageList (SETUPAPI.@)
273 BOOL WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData)
275 FIXME("(%p) stub\n", ClassListImageData);
279 /***********************************************************************
280 * SetupDiGetClassImageList (SETUPAPI.@)
282 BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
284 FIXME("(%p) stub\n", ClassImageListData);
288 /***********************************************************************
289 * SetupDiGetClassImageList (SETUPAPI.@)
291 BOOL WINAPI SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData, const GUID *class, PINT index)
293 FIXME("%p %p %p\n", ClassImageListData, class, index);
297 /***********************************************************************
298 * SetupDiOpenDeviceInfoA (SETUPAPI.@)
300 BOOL WINAPI SetupDiOpenDeviceInfoA(HDEVINFO DeviceInfoSet, PCSTR DeviceInstanceId,
301 HWND hwndParent, DWORD OpenFlags, PSP_DEVINFO_DATA DeviceInfoData)
303 FIXME("%p %s %p 0x%08x %p\n", DeviceInfoSet, debugstr_a(DeviceInstanceId),
304 hwndParent, OpenFlags, DeviceInfoData);
308 /***********************************************************************
309 * SetupDiOpenDeviceInfoW (SETUPAPI.@)
311 BOOL WINAPI SetupDiOpenDeviceInfoW(HDEVINFO DeviceInfoSet, PCWSTR DeviceInstanceId,
312 HWND hwndParent, DWORD OpenFlags, PSP_DEVINFO_DATA DeviceInfoData)
314 FIXME("%p %s %p 0x%08x %p\n", DeviceInfoSet, debugstr_w(DeviceInstanceId),
315 hwndParent, OpenFlags, DeviceInfoData);
319 /***********************************************************************
320 * CM_Locate_DevNodeA (SETUPAPI.@)
322 CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags)
324 FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags);
329 /***********************************************************************
330 * CM_Locate_DevNodeW (SETUPAPI.@)
332 CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags)
334 FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags);
339 /***********************************************************************
340 * CM_Locate_DevNode_ExA (SETUPAPI.@)
342 CONFIGRET WINAPI CM_Locate_DevNode_ExA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags, HMACHINE hMachine)
344 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags, hMachine);
349 /***********************************************************************
350 * CM_Locate_DevNode_ExW (SETUPAPI.@)
352 CONFIGRET WINAPI CM_Locate_DevNode_ExW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags, HMACHINE hMachine)
354 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags, hMachine);
359 /***********************************************************************
360 * CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
362 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(PULONG len, LPGUID class, DEVINSTID_A id,
363 ULONG flags, HMACHINE machine)
365 FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_a(id), flags, machine);
369 /***********************************************************************
370 * CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
372 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class, DEVINSTID_W id,
373 ULONG flags, HMACHINE machine)
375 FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine);
379 /***********************************************************************
380 * CM_Get_DevNode_Registry_Property_ExA (SETUPAPI.@)
382 CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExA(DEVINST dev, ULONG prop, PULONG regdatatype,
383 PVOID buf, PULONG len, ULONG flags, HMACHINE machine)
385 FIXME("0x%08x %u %p %p %p 0x%08x %p: stub\n", dev, prop, regdatatype, buf, len, flags, machine);
389 /***********************************************************************
390 * CM_Get_DevNode_Registry_Property_ExW (SETUPAPI.@)
392 CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExW(DEVINST dev, ULONG prop, PULONG regdatatype,
393 PVOID buf, PULONG len, ULONG flags, HMACHINE machine)
395 FIXME("0x%08x %u %p %p %p 0x%08x %p: stub\n", dev, prop, regdatatype, buf, len, flags, machine);
399 /***********************************************************************
400 * CM_Enumerate_Classes (SETUPAPI.@)
402 CONFIGRET WINAPI CM_Enumerate_Classes(ULONG index, LPGUID class, ULONG flags)
404 FIXME("%u %p 0x%08x: stub\n", index, class, flags);
405 return CR_NO_SUCH_VALUE;
408 /***********************************************************************
409 * CM_Get_Class_Registry_PropertyA (SETUPAPI.@)
411 CONFIGRET WINAPI CM_Get_Class_Registry_PropertyA(LPGUID class, ULONG prop, PULONG regdatatype,
412 PVOID buf, ULONG len, ULONG flags, HMACHINE machine)
414 FIXME("%p %u %p %p %u 0x%08x %p: stub\n", class, prop, regdatatype, buf, len, flags, machine);
418 /***********************************************************************
419 * CM_Get_Class_Registry_PropertyW (SETUPAPI.@)
421 CONFIGRET WINAPI CM_Get_Class_Registry_PropertyW(LPGUID class, ULONG prop, PULONG regdatatype,
422 PVOID buf, ULONG len, ULONG flags, HMACHINE machine)
424 FIXME("%p %u %p %p %u 0x%08x %p: stub\n", class, prop, regdatatype, buf, len, flags, machine);
428 /***********************************************************************
429 * CM_Set_Class_Registry_PropertyA (SETUPAPI.@)
431 CONFIGRET WINAPI CM_Set_Class_Registry_PropertyA(LPGUID class, ULONG prop, PVOID buf, ULONG len,
432 ULONG flags, HMACHINE machine)
434 FIXME("%p %u %p %u 0x%08x %p: stub\n", class, prop, buf, len, flags, machine);
438 /***********************************************************************
439 * CM_Set_Class_Registry_PropertyW (SETUPAPI.@)
441 CONFIGRET WINAPI CM_Set_Class_Registry_PropertyW(LPGUID class, ULONG prop, PVOID buf, ULONG len,
442 ULONG flags, HMACHINE machine)
444 FIXME("%p %u %p %u 0x%08x %p: stub\n", class, prop, buf, len, flags, machine);
448 /***********************************************************************
449 * SetupLogFileW (SETUPAPI.@)
451 BOOL WINAPI SetupLogFileW(
452 HSPFILELOG FileLogHandle,
453 PCWSTR LogSectionName,
454 PCWSTR SourceFileName,
455 PCWSTR TargetFileName,
458 PCWSTR DiskDescription,
462 FIXME("(%p, %s, '%s', '%s', %d, %s, %s, %s, %d): stub\n", FileLogHandle,
463 debugstr_w(LogSectionName), debugstr_w(SourceFileName),
464 debugstr_w(TargetFileName), Checksum, debugstr_w(DiskTagfile),
465 debugstr_w(DiskDescription), debugstr_w(OtherInfo), Flags);
467 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
471 /***********************************************************************
472 * SetupLogFileA (SETUPAPI.@)
474 BOOL WINAPI SetupLogFileA(
475 HSPFILELOG FileLogHandle,
476 PCSTR LogSectionName,
477 PCSTR SourceFileName,
478 PCSTR TargetFileName,
481 PCSTR DiskDescription,
485 FIXME("(%p, %p, '%s', '%s', %d, %p, %p, %p, %d): stub\n", FileLogHandle,
486 LogSectionName, SourceFileName, TargetFileName, Checksum, DiskTagfile,
487 DiskDescription, OtherInfo, Flags);
489 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
493 /***********************************************************************
494 * SetupDiBuildDriverInfoList (SETUPAPI.@)
497 BOOL WINAPI SetupDiBuildDriverInfoList(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, DWORD DriverType)
499 FIXME(": stub %p, %p, %d\n", DeviceInfoSet, DeviceInfoData, DriverType);
501 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
505 /***********************************************************************
506 * SetupDiDeleteDeviceInfo (SETUPAPI.@)
509 BOOL WINAPI SetupDiDeleteDeviceInfo(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData)
511 FIXME(": stub %p, %p\n", DeviceInfoSet, DeviceInfoData);
513 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
517 /***********************************************************************
518 * SetupDiDrawMiniIcon (SETUPAPI.@)
520 INT WINAPI SetupDiDrawMiniIcon(HDC hdc, RECT rc, INT MiniIconIndex, DWORD Flags)
522 FIXME("(%p, %s, %d, %x) stub\n", hdc, wine_dbgstr_rect(&rc), MiniIconIndex, Flags);
524 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
528 /***********************************************************************
529 * SetupDiGetClassBitmapIndex (SETUPAPI.@)
531 BOOL WINAPI SetupDiGetClassBitmapIndex(const GUID *ClassGuid, PINT MiniIconIndex)
533 FIXME("(%s, %p) stub\n", debugstr_guid(ClassGuid), MiniIconIndex);
535 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
539 /***********************************************************************
540 * SetupDiLoadClassIcon (SETUPAPI.@)
542 BOOL WINAPI SetupDiLoadClassIcon(const GUID *ClassGuid, HICON *LargeIcon, PINT MiniIconIndex)
544 FIXME(": stub %s, %p, %p\n", debugstr_guid(ClassGuid), LargeIcon, MiniIconIndex);
546 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
550 /***********************************************************************
551 * SetupDiSetSelectedDevice (SETUPAPI.@)
553 BOOL WINAPI SetupDiSetSelectedDevice(HDEVINFO SetupDiSetSelectedDevice, PSP_DEVINFO_DATA DeviceInfoData)
555 FIXME("(%p, %p) stub\n", SetupDiSetSelectedDevice, DeviceInfoData);