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 * SetupCloseLog(SETUPAPI.@)
194 void WINAPI
SetupCloseLog(void)
199 /***********************************************************************
200 * SetupLogErrorW(SETUPAPI.@)
202 BOOL WINAPI
SetupLogErrorW(LPCWSTR MessageString
, LogSeverity Severity
)
204 FIXME("(%s, %d) stub\n", debugstr_w(MessageString
), Severity
);
208 /***********************************************************************
209 * SetupOpenLog(SETUPAPI.@)
211 BOOL WINAPI
SetupOpenLog(BOOL Reserved
)
213 FIXME("(%d) stub\n", Reserved
);
217 /***********************************************************************
218 * SetupPromptReboot(SETUPAPI.@)
220 INT WINAPI
SetupPromptReboot( HSPFILEQ file_queue
, HWND owner
, BOOL scan_only
)
222 FIXME("%p, %p, %d: stub\n", file_queue
, owner
, scan_only
);
226 /***********************************************************************
227 * SetupQueryDrivesInDiskSpaceListA (SETUPAPI.@)
229 BOOL WINAPI
SetupQueryDrivesInDiskSpaceListA(HDSKSPC disk_space
, PSTR return_buffer
, DWORD return_buffer_size
, PDWORD required_size
)
231 FIXME("%p, %p, %d, %p: stub\n", disk_space
, return_buffer
, return_buffer_size
, required_size
);
235 /***********************************************************************
236 * SetupQueryDrivesInDiskSpaceListW (SETUPAPI.@)
238 BOOL WINAPI
SetupQueryDrivesInDiskSpaceListW(HDSKSPC disk_space
, PWSTR return_buffer
, DWORD return_buffer_size
, PDWORD required_size
)
240 FIXME("%p, %p, %d, %p: stub\n", disk_space
, return_buffer
, return_buffer_size
, required_size
);
244 /***********************************************************************
245 * SetupAddToSourceListA (SETUPAPI.@)
247 BOOL WINAPI
SetupAddToSourceListA(DWORD flags
, PCSTR source
)
249 FIXME("0x%08x %s: stub\n", flags
, debugstr_a(source
));
253 /***********************************************************************
254 * SetupAddToSourceListW (SETUPAPI.@)
256 BOOL WINAPI
SetupAddToSourceListW(DWORD flags
, PCWSTR source
)
258 FIXME("0x%08x %s: stub\n", flags
, debugstr_w(source
));
262 /***********************************************************************
263 * SetupSetSourceListA (SETUPAPI.@)
265 BOOL WINAPI
SetupSetSourceListA(DWORD flags
, PCSTR
*list
, UINT count
)
267 FIXME("0x%08x %p %d: stub\n", flags
, list
, count
);
271 /***********************************************************************
272 * SetupSetSourceListW (SETUPAPI.@)
274 BOOL WINAPI
SetupSetSourceListW(DWORD flags
, PCWSTR
*list
, UINT count
)
276 FIXME("0x%08x %p %d: stub\n", flags
, list
, count
);
280 /***********************************************************************
281 * SetupDiDestroyClassImageList (SETUPAPI.@)
283 BOOL WINAPI
SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData
)
285 FIXME("(%p) stub\n", ClassListImageData
);
289 /***********************************************************************
290 * SetupDiGetClassImageList (SETUPAPI.@)
292 BOOL WINAPI
SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData
)
294 FIXME("(%p) stub\n", ClassImageListData
);
298 /***********************************************************************
299 * SetupDiGetClassImageList (SETUPAPI.@)
301 BOOL WINAPI
SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData
, const GUID
*class, PINT index
)
303 FIXME("%p %p %p\n", ClassImageListData
, class, index
);
307 /***********************************************************************
308 * SetupDiOpenDeviceInfoA (SETUPAPI.@)
310 BOOL WINAPI
SetupDiOpenDeviceInfoA(HDEVINFO DeviceInfoSet
, PCSTR DeviceInstanceId
,
311 HWND hwndParent
, DWORD OpenFlags
, PSP_DEVINFO_DATA DeviceInfoData
)
313 FIXME("%p %s %p 0x%08x %p: stub\n", DeviceInfoSet
, debugstr_a(DeviceInstanceId
),
314 hwndParent
, OpenFlags
, DeviceInfoData
);
318 /***********************************************************************
319 * SetupDiOpenDeviceInfoW (SETUPAPI.@)
321 BOOL WINAPI
SetupDiOpenDeviceInfoW(HDEVINFO DeviceInfoSet
, PCWSTR DeviceInstanceId
,
322 HWND hwndParent
, DWORD OpenFlags
, PSP_DEVINFO_DATA DeviceInfoData
)
324 FIXME("%p %s %p 0x%08x %p: stub\n", DeviceInfoSet
, debugstr_w(DeviceInstanceId
),
325 hwndParent
, OpenFlags
, DeviceInfoData
);
329 /***********************************************************************
330 * CM_Locate_DevNodeA (SETUPAPI.@)
332 CONFIGRET WINAPI
CM_Locate_DevNodeA(PDEVINST pdnDevInst
, DEVINSTID_A pDeviceID
, ULONG ulFlags
)
334 FIXME("%p %s 0x%08x: stub\n", pdnDevInst
, debugstr_a(pDeviceID
), ulFlags
);
339 /***********************************************************************
340 * CM_Locate_DevNodeW (SETUPAPI.@)
342 CONFIGRET WINAPI
CM_Locate_DevNodeW(PDEVINST pdnDevInst
, DEVINSTID_W pDeviceID
, ULONG ulFlags
)
344 FIXME("%p %s 0x%08x: stub\n", pdnDevInst
, debugstr_w(pDeviceID
), ulFlags
);
349 /***********************************************************************
350 * CM_Locate_DevNode_ExA (SETUPAPI.@)
352 CONFIGRET WINAPI
CM_Locate_DevNode_ExA(PDEVINST pdnDevInst
, DEVINSTID_A pDeviceID
, ULONG ulFlags
, HMACHINE hMachine
)
354 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst
, debugstr_a(pDeviceID
), ulFlags
, hMachine
);
359 /***********************************************************************
360 * CM_Locate_DevNode_ExW (SETUPAPI.@)
362 CONFIGRET WINAPI
CM_Locate_DevNode_ExW(PDEVINST pdnDevInst
, DEVINSTID_W pDeviceID
, ULONG ulFlags
, HMACHINE hMachine
)
364 FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst
, debugstr_w(pDeviceID
), ulFlags
, hMachine
);
369 /***********************************************************************
370 * CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
372 CONFIGRET WINAPI
CM_Get_Device_Interface_List_Size_ExA(PULONG len
, LPGUID
class, DEVINSTID_A id
,
373 ULONG flags
, HMACHINE machine
)
375 FIXME("%p %p %s 0x%08x %p: stub\n", len
, class, debugstr_a(id
), flags
, machine
);
379 /***********************************************************************
380 * CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
382 CONFIGRET WINAPI
CM_Get_Device_Interface_List_Size_ExW(PULONG len
, LPGUID
class, DEVINSTID_W id
,
383 ULONG flags
, HMACHINE machine
)
385 FIXME("%p %p %s 0x%08x %p: stub\n", len
, class, debugstr_w(id
), flags
, machine
);
389 /***********************************************************************
390 * CM_Get_DevNode_Registry_Property_ExA (SETUPAPI.@)
392 CONFIGRET WINAPI
CM_Get_DevNode_Registry_Property_ExA(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_Get_DevNode_Registry_Property_ExW (SETUPAPI.@)
402 CONFIGRET WINAPI
CM_Get_DevNode_Registry_Property_ExW(DEVINST dev
, ULONG prop
, PULONG regdatatype
,
403 PVOID buf
, PULONG len
, ULONG flags
, HMACHINE machine
)
405 FIXME("0x%08x %u %p %p %p 0x%08x %p: stub\n", dev
, prop
, regdatatype
, buf
, len
, flags
, machine
);
409 /***********************************************************************
410 * CM_Get_DevNode_Registry_PropertyA (SETUPAPI.@)
412 CONFIGRET WINAPI
CM_Get_DevNode_Registry_PropertyA(DEVINST dev
, ULONG prop
, PULONG regdatatype
,
413 PVOID buf
, PULONG len
, ULONG flags
)
415 return CM_Get_DevNode_Registry_Property_ExA(dev
, prop
, regdatatype
, buf
, len
, flags
, NULL
);
418 /***********************************************************************
419 * CM_Get_DevNode_Registry_PropertyW (SETUPAPI.@)
421 CONFIGRET WINAPI
CM_Get_DevNode_Registry_PropertyW(DEVINST dev
, ULONG prop
, PULONG regdatatype
,
422 PVOID buf
, PULONG len
, ULONG flags
)
424 return CM_Get_DevNode_Registry_Property_ExW(dev
, prop
, regdatatype
, buf
, len
, flags
, NULL
);
427 /***********************************************************************
428 * CM_Enumerate_Classes (SETUPAPI.@)
430 CONFIGRET WINAPI
CM_Enumerate_Classes(ULONG index
, LPGUID
class, ULONG flags
)
432 FIXME("%u %p 0x%08x: stub\n", index
, class, flags
);
433 return CR_NO_SUCH_VALUE
;
436 /***********************************************************************
437 * CM_Get_Class_Registry_PropertyA (SETUPAPI.@)
439 CONFIGRET WINAPI
CM_Get_Class_Registry_PropertyA(LPGUID
class, ULONG prop
, PULONG regdatatype
,
440 PVOID buf
, ULONG len
, ULONG flags
, HMACHINE machine
)
442 FIXME("%p %u %p %p %u 0x%08x %p: stub\n", class, prop
, regdatatype
, buf
, len
, flags
, machine
);
446 /***********************************************************************
447 * CM_Get_Class_Registry_PropertyW (SETUPAPI.@)
449 CONFIGRET WINAPI
CM_Get_Class_Registry_PropertyW(LPGUID
class, ULONG prop
, PULONG regdatatype
,
450 PVOID buf
, ULONG len
, ULONG flags
, HMACHINE machine
)
452 FIXME("%p %u %p %p %u 0x%08x %p: stub\n", class, prop
, regdatatype
, buf
, len
, flags
, machine
);
456 CONFIGRET WINAPI
CM_Reenumerate_DevNode(DEVINST dnDevInst
, ULONG ulFlags
)
458 FIXME("0x%08x 0x%08x: stub\n", dnDevInst
, ulFlags
);
462 CONFIGRET WINAPI
CM_Reenumerate_DevNode_Ex(DEVINST dnDevInst
, ULONG ulFlags
, HMACHINE machine
)
464 FIXME("0x%08x 0x%08x %p: stub\n", dnDevInst
, ulFlags
, machine
);
468 /***********************************************************************
469 * CM_Set_Class_Registry_PropertyA (SETUPAPI.@)
471 CONFIGRET WINAPI
CM_Set_Class_Registry_PropertyA(LPGUID
class, ULONG prop
, PVOID buf
, ULONG len
,
472 ULONG flags
, HMACHINE machine
)
474 FIXME("%p %u %p %u 0x%08x %p: stub\n", class, prop
, buf
, len
, flags
, machine
);
478 /***********************************************************************
479 * CM_Set_Class_Registry_PropertyW (SETUPAPI.@)
481 CONFIGRET WINAPI
CM_Set_Class_Registry_PropertyW(LPGUID
class, ULONG prop
, PVOID buf
, ULONG len
,
482 ULONG flags
, HMACHINE machine
)
484 FIXME("%p %u %p %u 0x%08x %p: stub\n", class, prop
, buf
, len
, flags
, machine
);
488 /***********************************************************************
489 * SetupLogFileW (SETUPAPI.@)
491 BOOL WINAPI
SetupLogFileW(
492 HSPFILELOG FileLogHandle
,
493 PCWSTR LogSectionName
,
494 PCWSTR SourceFileName
,
495 PCWSTR TargetFileName
,
498 PCWSTR DiskDescription
,
502 FIXME("(%p, %s, '%s', '%s', %d, %s, %s, %s, %d): stub\n", FileLogHandle
,
503 debugstr_w(LogSectionName
), debugstr_w(SourceFileName
),
504 debugstr_w(TargetFileName
), Checksum
, debugstr_w(DiskTagfile
),
505 debugstr_w(DiskDescription
), debugstr_w(OtherInfo
), Flags
);
507 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
511 /***********************************************************************
512 * SetupLogFileA (SETUPAPI.@)
514 BOOL WINAPI
SetupLogFileA(
515 HSPFILELOG FileLogHandle
,
516 PCSTR LogSectionName
,
517 PCSTR SourceFileName
,
518 PCSTR TargetFileName
,
521 PCSTR DiskDescription
,
525 FIXME("(%p, %p, '%s', '%s', %d, %p, %p, %p, %d): stub\n", FileLogHandle
,
526 LogSectionName
, SourceFileName
, TargetFileName
, Checksum
, DiskTagfile
,
527 DiskDescription
, OtherInfo
, Flags
);
529 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
533 /***********************************************************************
534 * SetupDiBuildDriverInfoList (SETUPAPI.@)
537 BOOL WINAPI
SetupDiBuildDriverInfoList(HDEVINFO DeviceInfoSet
, PSP_DEVINFO_DATA DeviceInfoData
, DWORD DriverType
)
539 FIXME(": stub %p, %p, %d\n", DeviceInfoSet
, DeviceInfoData
, DriverType
);
541 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
545 /***********************************************************************
546 * SetupDiDestroyDriverInfoList (SETUPAPI.@)
549 BOOL WINAPI
SetupDiDestroyDriverInfoList(HDEVINFO DeviceInfoSet
, PSP_DEVINFO_DATA DeviceInfoData
, DWORD DriverType
)
551 FIXME("%p %p %d\n", DeviceInfoSet
, DeviceInfoData
, DriverType
);
553 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
557 /***********************************************************************
558 * SetupDiDeleteDeviceInfo (SETUPAPI.@)
561 BOOL WINAPI
SetupDiDeleteDeviceInfo(HDEVINFO DeviceInfoSet
, PSP_DEVINFO_DATA DeviceInfoData
)
563 FIXME(": stub %p, %p\n", DeviceInfoSet
, DeviceInfoData
);
565 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
569 /***********************************************************************
570 * SetupDiDrawMiniIcon (SETUPAPI.@)
572 INT WINAPI
SetupDiDrawMiniIcon(HDC hdc
, RECT rc
, INT MiniIconIndex
, DWORD Flags
)
574 FIXME("(%p, %s, %d, %x) stub\n", hdc
, wine_dbgstr_rect(&rc
), MiniIconIndex
, Flags
);
576 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
580 /***********************************************************************
581 * SetupDiGetClassBitmapIndex (SETUPAPI.@)
583 BOOL WINAPI
SetupDiGetClassBitmapIndex(const GUID
*ClassGuid
, PINT MiniIconIndex
)
585 FIXME("(%s, %p) stub\n", debugstr_guid(ClassGuid
), MiniIconIndex
);
587 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
591 /***********************************************************************
592 * SetupDiLoadClassIcon (SETUPAPI.@)
594 BOOL WINAPI
SetupDiLoadClassIcon(const GUID
*ClassGuid
, HICON
*LargeIcon
, PINT MiniIconIndex
)
596 FIXME(": stub %s, %p, %p\n", debugstr_guid(ClassGuid
), LargeIcon
, MiniIconIndex
);
598 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
602 /***********************************************************************
603 * SetupDiSetSelectedDevice (SETUPAPI.@)
605 BOOL WINAPI
SetupDiSetSelectedDevice(HDEVINFO SetupDiSetSelectedDevice
, PSP_DEVINFO_DATA DeviceInfoData
)
607 FIXME("(%p, %p) stub\n", SetupDiSetSelectedDevice
, DeviceInfoData
);