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_ExA (SETUPAPI.@)
84 DWORD WINAPI
CM_Get_Device_ID_ExA(
85 DEVINST dnDevInst
, PCHAR Buffer
, ULONG BufferLen
, ULONG ulFlags
, HMACHINE hMachine
)
87 FIXME("0x%08x %p 0x%08x 0x%08x %p: stub\n", dnDevInst
, Buffer
, BufferLen
, ulFlags
, hMachine
);
91 /***********************************************************************
92 * CM_Get_Device_ID_ExW (SETUPAPI.@)
94 DWORD WINAPI
CM_Get_Device_ID_ExW(
95 DEVINST dnDevInst
, PWCHAR Buffer
, ULONG BufferLen
, ULONG ulFlags
, HMACHINE hMachine
)
97 FIXME("0x%08x %p 0x%08x 0x%08x %p: stub\n", dnDevInst
, Buffer
, BufferLen
, ulFlags
, hMachine
);
101 /***********************************************************************
102 * CM_Get_Device_ID_ListA (SETUPAPI.@)
104 CONFIGRET WINAPI
CM_Get_Device_ID_ListA(
105 PCSTR pszFilter
, PCHAR Buffer
, ULONG BufferLen
, ULONG ulFlags
)
107 FIXME("%s %p %d 0x%08x: stub\n", debugstr_a(pszFilter
), Buffer
, BufferLen
, ulFlags
);
109 if (BufferLen
>= 2) Buffer
[0] = Buffer
[1] = 0;
113 /***********************************************************************
114 * CM_Get_Device_ID_ListW (SETUPAPI.@)
116 CONFIGRET WINAPI
CM_Get_Device_ID_ListW(
117 PCWSTR pszFilter
, PWCHAR Buffer
, ULONG BufferLen
, ULONG ulFlags
)
119 FIXME("%s %p %d 0x%08x: stub\n", debugstr_w(pszFilter
), Buffer
, BufferLen
, ulFlags
);
121 if (BufferLen
>= 2) Buffer
[0] = Buffer
[1] = 0;
125 /***********************************************************************
126 * CM_Get_Device_ID_List_SizeA (SETUPAPI.@)
128 CONFIGRET WINAPI
CM_Get_Device_ID_List_SizeA( PULONG pulLen
, PCSTR pszFilter
, ULONG ulFlags
)
130 FIXME("%p %s 0x%08x: stub\n", pulLen
, debugstr_a(pszFilter
), ulFlags
);
135 /***********************************************************************
136 * CM_Get_Device_ID_List_SizeW (SETUPAPI.@)
138 CONFIGRET WINAPI
CM_Get_Device_ID_List_SizeW( PULONG pulLen
, PCWSTR pszFilter
, ULONG ulFlags
)
140 FIXME("%p %s 0x%08x: stub\n", pulLen
, debugstr_w(pszFilter
), ulFlags
);
145 /***********************************************************************
146 * CM_Get_Parent (SETUPAPI.@)
148 DWORD WINAPI
CM_Get_Parent(PDEVINST pdnDevInst
, DEVINST dnDevInst
, ULONG ulFlags
)
150 FIXME("%p 0x%08x 0x%08x stub\n", pdnDevInst
, dnDevInst
, ulFlags
);
151 *pdnDevInst
= dnDevInst
;
155 /***********************************************************************
156 * SetupInitializeFileLogW(SETUPAPI.@)
158 HSPFILELOG WINAPI
SetupInitializeFileLogW(LPCWSTR LogFileName
, DWORD Flags
)
160 FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName
),Flags
);
161 return INVALID_HANDLE_VALUE
;
164 /***********************************************************************
165 * SetupInitializeFileLogA(SETUPAPI.@)
167 HSPFILELOG WINAPI
SetupInitializeFileLogA(LPCSTR LogFileName
, DWORD Flags
)
169 FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName
),Flags
);
170 return INVALID_HANDLE_VALUE
;
173 /***********************************************************************
174 * SetupTerminateFileLog(SETUPAPI.@)
176 BOOL WINAPI
SetupTerminateFileLog(HANDLE FileLogHandle
)
178 FIXME ("Stub %p\n",FileLogHandle
);
182 /***********************************************************************
183 * RegistryDelnode(SETUPAPI.@)
185 BOOL WINAPI
RegistryDelnode(DWORD x
, DWORD y
)
187 FIXME("%08x %08x: stub\n", x
, y
);
191 /***********************************************************************
192 * SetupPromptReboot(SETUPAPI.@)
194 INT WINAPI
SetupPromptReboot( HSPFILEQ file_queue
, HWND owner
, BOOL scan_only
)
196 FIXME("%p, %p, %d: stub\n", file_queue
, owner
, scan_only
);
200 /***********************************************************************
201 * SetupQueryDrivesInDiskSpaceListA (SETUPAPI.@)
203 BOOL WINAPI
SetupQueryDrivesInDiskSpaceListA(HDSKSPC disk_space
, PSTR return_buffer
, DWORD return_buffer_size
, PDWORD required_size
)
205 FIXME("%p, %p, %d, %p: stub\n", disk_space
, return_buffer
, return_buffer_size
, required_size
);
209 /***********************************************************************
210 * SetupQueryDrivesInDiskSpaceListW (SETUPAPI.@)
212 BOOL WINAPI
SetupQueryDrivesInDiskSpaceListW(HDSKSPC disk_space
, PWSTR return_buffer
, DWORD return_buffer_size
, PDWORD required_size
)
214 FIXME("%p, %p, %d, %p: stub\n", disk_space
, return_buffer
, return_buffer_size
, required_size
);
218 /***********************************************************************
219 * SetupAddToSourceListA (SETUPAPI.@)
221 BOOL WINAPI
SetupAddToSourceListA(DWORD flags
, PCSTR source
)
223 FIXME("0x%08x %s: stub\n", flags
, debugstr_a(source
));
227 /***********************************************************************
228 * SetupAddToSourceListW (SETUPAPI.@)
230 BOOL WINAPI
SetupAddToSourceListW(DWORD flags
, PCWSTR source
)
232 FIXME("0x%08x %s: stub\n", flags
, debugstr_w(source
));
236 /***********************************************************************
237 * SetupSetSourceListA (SETUPAPI.@)
239 BOOL WINAPI
SetupSetSourceListA(DWORD flags
, PCSTR
*list
, UINT count
)
241 FIXME("0x%08x %p %d: stub\n", flags
, list
, count
);
245 /***********************************************************************
246 * SetupSetSourceListW (SETUPAPI.@)
248 BOOL WINAPI
SetupSetSourceListW(DWORD flags
, PCWSTR
*list
, UINT count
)
250 FIXME("0x%08x %p %d: stub\n", flags
, list
, count
);
254 /***********************************************************************
255 * SetupDiDestroyClassImageList (SETUPAPI.@)
257 BOOL WINAPI
SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData
)
259 FIXME("(%p) stub\n", ClassListImageData
);
263 /***********************************************************************
264 * SetupDiGetClassImageList (SETUPAPI.@)
266 BOOL WINAPI
SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData
)
268 FIXME("(%p) stub\n", ClassImageListData
);
272 /***********************************************************************
273 * SetupDiGetClassImageList (SETUPAPI.@)
275 BOOL WINAPI
SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData
, const GUID
*class, PINT index
)
277 FIXME("%p %p %p\n", ClassImageListData
, class, index
);
281 /***********************************************************************
282 * SetupDiOpenDeviceInfoA (SETUPAPI.@)
284 BOOL WINAPI
SetupDiOpenDeviceInfoA(HDEVINFO DeviceInfoSet
, PCSTR DeviceInstanceId
,
285 HWND hwndParent
, DWORD OpenFlags
, PSP_DEVINFO_DATA DeviceInfoData
)
287 FIXME("%p %s %p 0x%08x %p: stub\n", DeviceInfoSet
, debugstr_a(DeviceInstanceId
),
288 hwndParent
, OpenFlags
, DeviceInfoData
);
292 /***********************************************************************
293 * SetupDiOpenDeviceInfoW (SETUPAPI.@)
295 BOOL WINAPI
SetupDiOpenDeviceInfoW(HDEVINFO DeviceInfoSet
, PCWSTR DeviceInstanceId
,
296 HWND hwndParent
, DWORD OpenFlags
, PSP_DEVINFO_DATA DeviceInfoData
)
298 FIXME("%p %s %p 0x%08x %p: stub\n", DeviceInfoSet
, debugstr_w(DeviceInstanceId
),
299 hwndParent
, OpenFlags
, DeviceInfoData
);
303 /***********************************************************************
304 * CM_Locate_DevNodeA (SETUPAPI.@)
306 CONFIGRET WINAPI
CM_Locate_DevNodeA(PDEVINST pdnDevInst
, DEVINSTID_A pDeviceID
, ULONG ulFlags
)
308 FIXME("%p %s 0x%08x: stub\n", pdnDevInst
, debugstr_a(pDeviceID
), ulFlags
);
313 /***********************************************************************
314 * CM_Locate_DevNodeW (SETUPAPI.@)
316 CONFIGRET WINAPI
CM_Locate_DevNodeW(PDEVINST pdnDevInst
, DEVINSTID_W pDeviceID
, ULONG ulFlags
)
318 FIXME("%p %s 0x%08x: stub\n", pdnDevInst
, debugstr_w(pDeviceID
), ulFlags
);
323 /***********************************************************************
324 * CM_Locate_DevNode_ExA (SETUPAPI.@)
326 CONFIGRET WINAPI
CM_Locate_DevNode_ExA(PDEVINST pdnDevInst
, DEVINSTID_A pDeviceID
, ULONG ulFlags
, HMACHINE hMachine
)
328 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst
, debugstr_a(pDeviceID
), ulFlags
, hMachine
);
333 /***********************************************************************
334 * CM_Locate_DevNode_ExW (SETUPAPI.@)
336 CONFIGRET WINAPI
CM_Locate_DevNode_ExW(PDEVINST pdnDevInst
, DEVINSTID_W pDeviceID
, ULONG ulFlags
, HMACHINE hMachine
)
338 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst
, debugstr_w(pDeviceID
), ulFlags
, hMachine
);
343 /***********************************************************************
344 * CM_Get_Device_Interface_List_SizeA (SETUPAPI.@)
346 CONFIGRET WINAPI
CM_Get_Device_Interface_List_SizeA(PULONG len
, LPGUID
class, DEVINSTID_A id
,
349 FIXME("%p %p %s 0x%08x: stub\n", len
, class, debugstr_a(id
), flags
);
353 /***********************************************************************
354 * CM_Get_Device_Interface_List_SizeW (SETUPAPI.@)
356 CONFIGRET WINAPI
CM_Get_Device_Interface_List_SizeW(PULONG len
, LPGUID
class, DEVINSTID_W id
,
359 FIXME("%p %p %s 0x%08x: stub\n", len
, class, debugstr_w(id
), flags
);
363 /***********************************************************************
364 * CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
366 CONFIGRET WINAPI
CM_Get_Device_Interface_List_Size_ExA(PULONG len
, LPGUID
class, DEVINSTID_A id
,
367 ULONG flags
, HMACHINE machine
)
369 FIXME("%p %p %s 0x%08x %p: stub\n", len
, class, debugstr_a(id
), flags
, machine
);
373 /***********************************************************************
374 * CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
376 CONFIGRET WINAPI
CM_Get_Device_Interface_List_Size_ExW(PULONG len
, LPGUID
class, DEVINSTID_W id
,
377 ULONG flags
, HMACHINE machine
)
379 FIXME("%p %p %s 0x%08x %p: stub\n", len
, class, debugstr_w(id
), flags
, machine
);
383 /***********************************************************************
384 * CM_Get_DevNode_Registry_Property_ExA (SETUPAPI.@)
386 CONFIGRET WINAPI
CM_Get_DevNode_Registry_Property_ExA(DEVINST dev
, ULONG prop
, PULONG regdatatype
,
387 PVOID buf
, PULONG len
, ULONG flags
, HMACHINE machine
)
389 FIXME("0x%08x %u %p %p %p 0x%08x %p: stub\n", dev
, prop
, regdatatype
, buf
, len
, flags
, machine
);
393 /***********************************************************************
394 * CM_Get_DevNode_Registry_Property_ExW (SETUPAPI.@)
396 CONFIGRET WINAPI
CM_Get_DevNode_Registry_Property_ExW(DEVINST dev
, ULONG prop
, PULONG regdatatype
,
397 PVOID buf
, PULONG len
, ULONG flags
, HMACHINE machine
)
399 FIXME("0x%08x %u %p %p %p 0x%08x %p: stub\n", dev
, prop
, regdatatype
, buf
, len
, flags
, machine
);
403 /***********************************************************************
404 * CM_Get_DevNode_Registry_PropertyA (SETUPAPI.@)
406 CONFIGRET WINAPI
CM_Get_DevNode_Registry_PropertyA(DEVINST dev
, ULONG prop
, PULONG regdatatype
,
407 PVOID buf
, PULONG len
, ULONG flags
)
409 return CM_Get_DevNode_Registry_Property_ExA(dev
, prop
, regdatatype
, buf
, len
, flags
, NULL
);
412 /***********************************************************************
413 * CM_Get_DevNode_Registry_PropertyW (SETUPAPI.@)
415 CONFIGRET WINAPI
CM_Get_DevNode_Registry_PropertyW(DEVINST dev
, ULONG prop
, PULONG regdatatype
,
416 PVOID buf
, PULONG len
, ULONG flags
)
418 return CM_Get_DevNode_Registry_Property_ExW(dev
, prop
, regdatatype
, buf
, len
, flags
, NULL
);
421 /***********************************************************************
422 * CM_Enumerate_Classes (SETUPAPI.@)
424 CONFIGRET WINAPI
CM_Enumerate_Classes(ULONG index
, LPGUID
class, ULONG flags
)
426 FIXME("%u %p 0x%08x: stub\n", index
, class, flags
);
427 return CR_NO_SUCH_VALUE
;
430 /***********************************************************************
431 * CM_Get_Class_Registry_PropertyA (SETUPAPI.@)
433 CONFIGRET WINAPI
CM_Get_Class_Registry_PropertyA(LPGUID
class, ULONG prop
, PULONG regdatatype
,
434 PVOID buf
, ULONG len
, ULONG flags
, HMACHINE machine
)
436 FIXME("%p %u %p %p %u 0x%08x %p: stub\n", class, prop
, regdatatype
, buf
, len
, flags
, machine
);
440 /***********************************************************************
441 * CM_Get_Class_Registry_PropertyW (SETUPAPI.@)
443 CONFIGRET WINAPI
CM_Get_Class_Registry_PropertyW(LPGUID
class, ULONG prop
, PULONG regdatatype
,
444 PVOID buf
, ULONG len
, ULONG flags
, HMACHINE machine
)
446 FIXME("%p %u %p %p %u 0x%08x %p: stub\n", class, prop
, regdatatype
, buf
, len
, flags
, machine
);
450 CONFIGRET WINAPI
CM_Reenumerate_DevNode(DEVINST dnDevInst
, ULONG ulFlags
)
452 FIXME("0x%08x 0x%08x: stub\n", dnDevInst
, ulFlags
);
456 CONFIGRET WINAPI
CM_Reenumerate_DevNode_Ex(DEVINST dnDevInst
, ULONG ulFlags
, HMACHINE machine
)
458 FIXME("0x%08x 0x%08x %p: stub\n", dnDevInst
, ulFlags
, machine
);
462 /***********************************************************************
463 * CM_Set_Class_Registry_PropertyA (SETUPAPI.@)
465 CONFIGRET WINAPI
CM_Set_Class_Registry_PropertyA(LPGUID
class, ULONG prop
, PVOID buf
, ULONG len
,
466 ULONG flags
, HMACHINE machine
)
468 FIXME("%p %u %p %u 0x%08x %p: stub\n", class, prop
, buf
, len
, flags
, machine
);
472 /***********************************************************************
473 * CM_Set_Class_Registry_PropertyW (SETUPAPI.@)
475 CONFIGRET WINAPI
CM_Set_Class_Registry_PropertyW(LPGUID
class, ULONG prop
, PVOID buf
, ULONG len
,
476 ULONG flags
, HMACHINE machine
)
478 FIXME("%p %u %p %u 0x%08x %p: stub\n", class, prop
, buf
, len
, flags
, machine
);
482 /***********************************************************************
483 * SetupLogFileW (SETUPAPI.@)
485 BOOL WINAPI
SetupLogFileW(
486 HSPFILELOG FileLogHandle
,
487 PCWSTR LogSectionName
,
488 PCWSTR SourceFileName
,
489 PCWSTR TargetFileName
,
492 PCWSTR DiskDescription
,
496 FIXME("(%p, %s, '%s', '%s', %d, %s, %s, %s, %d): stub\n", FileLogHandle
,
497 debugstr_w(LogSectionName
), debugstr_w(SourceFileName
),
498 debugstr_w(TargetFileName
), Checksum
, debugstr_w(DiskTagfile
),
499 debugstr_w(DiskDescription
), debugstr_w(OtherInfo
), Flags
);
501 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
505 /***********************************************************************
506 * SetupLogFileA (SETUPAPI.@)
508 BOOL WINAPI
SetupLogFileA(
509 HSPFILELOG FileLogHandle
,
510 PCSTR LogSectionName
,
511 PCSTR SourceFileName
,
512 PCSTR TargetFileName
,
515 PCSTR DiskDescription
,
519 FIXME("(%p, %p, '%s', '%s', %d, %p, %p, %p, %d): stub\n", FileLogHandle
,
520 LogSectionName
, SourceFileName
, TargetFileName
, Checksum
, DiskTagfile
,
521 DiskDescription
, OtherInfo
, Flags
);
523 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
527 /***********************************************************************
528 * SetupDiBuildDriverInfoList (SETUPAPI.@)
531 BOOL WINAPI
SetupDiBuildDriverInfoList(HDEVINFO DeviceInfoSet
, PSP_DEVINFO_DATA DeviceInfoData
, DWORD DriverType
)
533 FIXME(": stub %p, %p, %d\n", DeviceInfoSet
, DeviceInfoData
, DriverType
);
535 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
539 /***********************************************************************
540 * SetupDiDestroyDriverInfoList (SETUPAPI.@)
543 BOOL WINAPI
SetupDiDestroyDriverInfoList(HDEVINFO DeviceInfoSet
, PSP_DEVINFO_DATA DeviceInfoData
, DWORD DriverType
)
545 FIXME("%p %p %d\n", DeviceInfoSet
, DeviceInfoData
, DriverType
);
547 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
551 /***********************************************************************
552 * SetupDiDeleteDeviceInfo (SETUPAPI.@)
555 BOOL WINAPI
SetupDiDeleteDeviceInfo(HDEVINFO DeviceInfoSet
, PSP_DEVINFO_DATA DeviceInfoData
)
557 FIXME(": stub %p, %p\n", DeviceInfoSet
, DeviceInfoData
);
559 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
563 /***********************************************************************
564 * SetupDiDrawMiniIcon (SETUPAPI.@)
566 INT WINAPI
SetupDiDrawMiniIcon(HDC hdc
, RECT rc
, INT MiniIconIndex
, DWORD Flags
)
568 FIXME("(%p, %s, %d, %x) stub\n", hdc
, wine_dbgstr_rect(&rc
), MiniIconIndex
, Flags
);
570 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
574 /***********************************************************************
575 * SetupDiGetClassBitmapIndex (SETUPAPI.@)
577 BOOL WINAPI
SetupDiGetClassBitmapIndex(const GUID
*ClassGuid
, PINT MiniIconIndex
)
579 FIXME("(%s, %p) stub\n", debugstr_guid(ClassGuid
), MiniIconIndex
);
581 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
585 /***********************************************************************
586 * SetupDiLoadClassIcon (SETUPAPI.@)
588 BOOL WINAPI
SetupDiLoadClassIcon(const GUID
*ClassGuid
, HICON
*LargeIcon
, PINT MiniIconIndex
)
590 FIXME(": stub %s, %p, %p\n", debugstr_guid(ClassGuid
), LargeIcon
, MiniIconIndex
);
592 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
596 /***********************************************************************
597 * SetupDiSetSelectedDevice (SETUPAPI.@)
599 BOOL WINAPI
SetupDiSetSelectedDevice(HDEVINFO SetupDiSetSelectedDevice
, PSP_DEVINFO_DATA DeviceInfoData
)
601 FIXME("(%p, %p) stub\n", SetupDiSetSelectedDevice
, DeviceInfoData
);