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 * SetupSetSourceListA (SETUPAPI.@)
237 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
239 FIXME("0x%08x %p %d\n", flags, list, count);
243 /***********************************************************************
244 * SetupSetSourceListW (SETUPAPI.@)
246 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
248 FIXME("0x%08x %p %d\n", flags, list, count);
252 /***********************************************************************
253 * SetupDiDestroyClassImageList (SETUPAPI.@)
255 BOOL WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData)
257 FIXME("(%p) stub\n", ClassListImageData);
261 /***********************************************************************
262 * SetupDiGetClassImageList (SETUPAPI.@)
264 BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
266 FIXME("(%p) stub\n", ClassImageListData);
270 /***********************************************************************
271 * SetupDiGetClassImageList (SETUPAPI.@)
273 BOOL WINAPI SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData, const GUID *class, PINT index)
275 FIXME("%p %p %p\n", ClassImageListData, class, index);
279 /***********************************************************************
280 * SetupDiOpenDeviceInfoA (SETUPAPI.@)
282 BOOL WINAPI SetupDiOpenDeviceInfoA(HDEVINFO DeviceInfoSet, PCSTR DeviceInstanceId,
283 HWND hwndParent, DWORD OpenFlags, PSP_DEVINFO_DATA DeviceInfoData)
285 FIXME("%p %s %p 0x%08x %p\n", DeviceInfoSet, debugstr_a(DeviceInstanceId),
286 hwndParent, OpenFlags, DeviceInfoData);
290 /***********************************************************************
291 * SetupDiOpenDeviceInfoW (SETUPAPI.@)
293 BOOL WINAPI SetupDiOpenDeviceInfoW(HDEVINFO DeviceInfoSet, PCWSTR DeviceInstanceId,
294 HWND hwndParent, DWORD OpenFlags, PSP_DEVINFO_DATA DeviceInfoData)
296 FIXME("%p %s %p 0x%08x %p\n", DeviceInfoSet, debugstr_w(DeviceInstanceId),
297 hwndParent, OpenFlags, DeviceInfoData);
301 /***********************************************************************
302 * CM_Locate_DevNodeA (SETUPAPI.@)
304 CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags)
306 FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags);
311 /***********************************************************************
312 * CM_Locate_DevNodeW (SETUPAPI.@)
314 CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags)
316 FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags);
321 /***********************************************************************
322 * CM_Locate_DevNode_ExA (SETUPAPI.@)
324 CONFIGRET WINAPI CM_Locate_DevNode_ExA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags, HMACHINE hMachine)
326 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags, hMachine);
331 /***********************************************************************
332 * CM_Locate_DevNode_ExW (SETUPAPI.@)
334 CONFIGRET WINAPI CM_Locate_DevNode_ExW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags, HMACHINE hMachine)
336 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags, hMachine);
341 /***********************************************************************
342 * CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
344 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(PULONG len, LPGUID class, DEVINSTID_A id,
345 ULONG flags, HMACHINE machine)
347 FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_a(id), flags, machine);
351 /***********************************************************************
352 * CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
354 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class, DEVINSTID_W id,
355 ULONG flags, HMACHINE machine)
357 FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine);
361 /***********************************************************************
362 * CM_Get_DevNode_Registry_Property_ExA (SETUPAPI.@)
364 CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExA(DEVINST dev, ULONG prop, PULONG regdatatype,
365 PVOID buf, PULONG len, ULONG flags, HMACHINE machine)
367 FIXME("0x%08x %u %p %p %p 0x%08x %p: stub\n", dev, prop, regdatatype, buf, len, flags, machine);
371 /***********************************************************************
372 * CM_Get_DevNode_Registry_Property_ExW (SETUPAPI.@)
374 CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExW(DEVINST dev, ULONG prop, PULONG regdatatype,
375 PVOID buf, PULONG len, ULONG flags, HMACHINE machine)
377 FIXME("0x%08x %u %p %p %p 0x%08x %p: stub\n", dev, prop, regdatatype, buf, len, flags, machine);
381 /***********************************************************************
382 * CM_Enumerate_Classes (SETUPAPI.@)
384 CONFIGRET WINAPI CM_Enumerate_Classes(ULONG index, LPGUID class, ULONG flags)
386 FIXME("%u %p 0x%08x: stub\n", index, class, flags);
387 return CR_NO_SUCH_VALUE;
390 /***********************************************************************
391 * CM_Get_Class_Registry_PropertyA (SETUPAPI.@)
393 CONFIGRET WINAPI CM_Get_Class_Registry_PropertyA(LPGUID class, ULONG prop, PULONG regdatatype,
394 PVOID buf, ULONG len, ULONG flags, HMACHINE machine)
396 FIXME("%p %u %p %p %u 0x%08x %p: stub\n", class, prop, regdatatype, buf, len, flags, machine);
400 /***********************************************************************
401 * CM_Get_Class_Registry_PropertyW (SETUPAPI.@)
403 CONFIGRET WINAPI CM_Get_Class_Registry_PropertyW(LPGUID class, ULONG prop, PULONG regdatatype,
404 PVOID buf, ULONG len, ULONG flags, HMACHINE machine)
406 FIXME("%p %u %p %p %u 0x%08x %p: stub\n", class, prop, regdatatype, buf, len, flags, machine);
410 /***********************************************************************
411 * CM_Set_Class_Registry_PropertyA (SETUPAPI.@)
413 CONFIGRET WINAPI CM_Set_Class_Registry_PropertyA(LPGUID class, ULONG prop, PVOID buf, ULONG len,
414 ULONG flags, HMACHINE machine)
416 FIXME("%p %u %p %u 0x%08x %p: stub\n", class, prop, buf, len, flags, machine);
420 /***********************************************************************
421 * CM_Set_Class_Registry_PropertyW (SETUPAPI.@)
423 CONFIGRET WINAPI CM_Set_Class_Registry_PropertyW(LPGUID class, ULONG prop, PVOID buf, ULONG len,
424 ULONG flags, HMACHINE machine)
426 FIXME("%p %u %p %u 0x%08x %p: stub\n", class, prop, buf, len, flags, machine);
430 /***********************************************************************
431 * SetupLogFileW (SETUPAPI.@)
433 BOOL WINAPI SetupLogFileW(
434 HSPFILELOG FileLogHandle,
435 PCWSTR LogSectionName,
436 PCWSTR SourceFileName,
437 PCWSTR TargetFileName,
440 PCWSTR DiskDescription,
444 FIXME("(%p, %s, '%s', '%s', %d, %s, %s, %s, %d): stub\n", FileLogHandle,
445 debugstr_w(LogSectionName), debugstr_w(SourceFileName),
446 debugstr_w(TargetFileName), Checksum, debugstr_w(DiskTagfile),
447 debugstr_w(DiskDescription), debugstr_w(OtherInfo), Flags);
449 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
453 /***********************************************************************
454 * SetupLogFileA (SETUPAPI.@)
456 BOOL WINAPI SetupLogFileA(
457 HSPFILELOG FileLogHandle,
458 PCSTR LogSectionName,
459 PCSTR SourceFileName,
460 PCSTR TargetFileName,
463 PCSTR DiskDescription,
467 FIXME("(%p, %p, '%s', '%s', %d, %p, %p, %p, %d): stub\n", FileLogHandle,
468 LogSectionName, SourceFileName, TargetFileName, Checksum, DiskTagfile,
469 DiskDescription, OtherInfo, Flags);
471 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
475 /***********************************************************************
476 * SetupDiBuildDriverInfoList (SETUPAPI.@)
479 BOOL WINAPI SetupDiBuildDriverInfoList(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, DWORD DriverType)
481 FIXME(": stub %p, %p, %d\n", DeviceInfoSet, DeviceInfoData, DriverType);
483 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
487 /***********************************************************************
488 * SetupDiDeleteDeviceInfo (SETUPAPI.@)
491 BOOL WINAPI SetupDiDeleteDeviceInfo(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData)
493 FIXME(": stub %p, %p\n", DeviceInfoSet, DeviceInfoData);
495 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
499 /***********************************************************************
500 * SetupDiDrawMiniIcon (SETUPAPI.@)
502 INT WINAPI SetupDiDrawMiniIcon(HDC hdc, RECT rc, INT MiniIconIndex, DWORD Flags)
504 FIXME("(%p, %s, %d, %x) stub\n", hdc, wine_dbgstr_rect(&rc), MiniIconIndex, Flags);
506 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
510 /***********************************************************************
511 * SetupDiGetClassBitmapIndex (SETUPAPI.@)
513 BOOL WINAPI SetupDiGetClassBitmapIndex(const GUID *ClassGuid, PINT MiniIconIndex)
515 FIXME("(%s, %p) stub\n", debugstr_guid(ClassGuid), MiniIconIndex);
517 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
521 /***********************************************************************
522 * SetupDiLoadClassIcon (SETUPAPI.@)
524 BOOL WINAPI SetupDiLoadClassIcon(const GUID *ClassGuid, HICON *LargeIcon, PINT MiniIconIndex)
526 FIXME(": stub %s, %p, %p\n", debugstr_guid(ClassGuid), LargeIcon, MiniIconIndex);
528 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
532 /***********************************************************************
533 * SetupDiSetSelectedDevice (SETUPAPI.@)
535 BOOL WINAPI SetupDiSetSelectedDevice(HDEVINFO SetupDiSetSelectedDevice, PSP_DEVINFO_DATA DeviceInfoData)
537 FIXME("(%p, %p) stub\n", SetupDiSetSelectedDevice, DeviceInfoData);