windowscodecs: Implement InitializeCustom and GetColors for palettes.
[wine] / dlls / setupapi / stubs.c
1 /*
2  * SetupAPI stubs
3  *
4  * Copyright 2000 James Hatheway
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #include <stdarg.h>
22
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"
32
33 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
34
35 /***********************************************************************
36  *              TPWriteProfileString (SETUPX.62)
37  */
38 BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
39 {
40     FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
41     return TRUE;
42 }
43
44
45 /***********************************************************************
46  *              suErrorToIds  (SETUPX.61)
47  */
48 DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
49 {
50     FIXME( "%x %x: stub\n", w1, w2 );
51     return 0;
52 }
53
54 /***********************************************************************
55  *              CM_Connect_MachineA  (SETUPAPI.@)
56  */
57 CONFIGRET WINAPI CM_Connect_MachineA(PCSTR name, PHMACHINE machine)
58 {
59   FIXME("(%s %p) stub\n", name, machine);
60   return CR_ACCESS_DENIED;
61 }
62
63 /***********************************************************************
64  *              CM_Connect_MachineW  (SETUPAPI.@)
65  */
66 CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR name, PHMACHINE machine)
67 {
68   FIXME("\n");
69   return  CR_ACCESS_DENIED;
70 }
71
72 /***********************************************************************
73  *              CM_Create_DevNodeA  (SETUPAPI.@)
74  */
75 CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, DEVINST dnParent, ULONG ulFlags)
76 {
77   FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, pDeviceID, dnParent, ulFlags);
78   return CR_SUCCESS;
79 }
80
81 /***********************************************************************
82  *              CM_Create_DevNodeW  (SETUPAPI.@)
83  */
84 CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, DEVINST dnParent, ULONG ulFlags)
85 {
86   FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, debugstr_w(pDeviceID), dnParent, ulFlags);
87   return CR_SUCCESS;
88 }
89
90 /***********************************************************************
91  *              CM_Disconnect_Machine  (SETUPAPI.@)
92  */
93 CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
94 {
95   FIXME("\n");
96   return  CR_SUCCESS;
97
98 }
99
100 /***********************************************************************
101  *             CM_Get_Device_ID_ListA  (SETUPAPI.@)
102  */
103
104 CONFIGRET WINAPI CM_Get_Device_ID_ListA(
105     PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
106 {
107     FIXME("%p %p %d %d\n", pszFilter, Buffer, BufferLen, ulFlags );
108     memset(Buffer,0,2);
109     return CR_SUCCESS;
110 }
111
112 /***********************************************************************
113  *              CM_Get_Parent (SETUPAPI.@)
114  */
115 DWORD WINAPI CM_Get_Parent(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags)
116 {
117     FIXME("%p 0x%08x 0x%08x stub\n", pdnDevInst, dnDevInst, ulFlags);
118     *pdnDevInst = dnDevInst;
119     return CR_SUCCESS;
120 }
121
122 /***********************************************************************
123  *              SetupInitializeFileLogW(SETUPAPI.@)
124  */
125 HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
126 {
127     FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
128     return INVALID_HANDLE_VALUE;
129 }
130
131 /***********************************************************************
132  *              SetupInitializeFileLogA(SETUPAPI.@)
133  */
134 HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
135 {
136     FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
137     return INVALID_HANDLE_VALUE;
138 }
139
140 /***********************************************************************
141  *              SetupTerminateFileLog(SETUPAPI.@)
142  */
143 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
144 {
145     FIXME ("Stub %p\n",FileLogHandle);
146     return TRUE;
147 }
148
149 /***********************************************************************
150  *              RegistryDelnode(SETUPAPI.@)
151  */
152 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
153 {
154     FIXME("%08x %08x: stub\n", x, y);
155     return FALSE;
156 }
157
158 /***********************************************************************
159  *      SetupCloseLog(SETUPAPI.@)
160  */
161 void WINAPI SetupCloseLog(void)
162 {
163     FIXME("() stub\n");
164 }
165
166 /***********************************************************************
167  *      SetupLogErrorW(SETUPAPI.@)
168  */
169 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
170 {
171     FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
172     return TRUE;
173 }
174
175 /***********************************************************************
176  *      SetupOpenLog(SETUPAPI.@)
177  */
178 BOOL WINAPI SetupOpenLog(BOOL Reserved)
179 {
180     FIXME("(%d) stub\n", Reserved);
181     return TRUE;
182 }
183
184 /***********************************************************************
185  *      SetupPromptReboot(SETUPAPI.@)
186  */
187 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
188 {
189     FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
190     return 0;
191 }
192
193 /***********************************************************************
194  *      SetupSetSourceListA (SETUPAPI.@)
195  */
196 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
197 {
198     FIXME("0x%08x %p %d\n", flags, list, count);
199     return FALSE;
200 }
201
202 /***********************************************************************
203  *      SetupSetSourceListW (SETUPAPI.@)
204  */
205 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
206 {
207     FIXME("0x%08x %p %d\n", flags, list, count);
208     return FALSE;
209 }
210
211 /***********************************************************************
212  *      SetupDiGetINFClassA (SETUPAPI.@)
213  */
214 BOOL WINAPI SetupDiGetINFClassA(PCSTR inf, LPGUID class_guid, PSTR class_name,
215         DWORD size, PDWORD required_size)
216 {
217     FIXME("%s %p %p %d %p\n", debugstr_a(inf), class_guid, class_name, size, required_size);
218     return FALSE;
219 }
220
221 /***********************************************************************
222  *      SetupDiGetINFClassW (SETUPAPI.@)
223  */
224 BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
225         DWORD size, PDWORD required_size)
226 {
227     FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size);
228     return FALSE;
229 }
230
231 /***********************************************************************
232  *      SetupDiDestroyClassImageList (SETUPAPI.@)
233  */
234 BOOL WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData)
235 {
236     FIXME("(%p) stub\n", ClassListImageData);
237     return TRUE;
238 }
239
240 /***********************************************************************
241  *      SetupDiGetClassImageList (SETUPAPI.@)
242  */
243 BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
244 {
245     FIXME("(%p) stub\n", ClassImageListData);
246     return FALSE;
247 }
248
249 /***********************************************************************
250  *      CM_Locate_DevNodeA (SETUPAPI.@)
251  */
252 CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags)
253 {
254     FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags);
255
256     return CR_FAILURE;
257 }
258
259 /***********************************************************************
260  *      CM_Locate_DevNodeW (SETUPAPI.@)
261  */
262 CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags)
263 {
264     FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags);
265
266     return CR_FAILURE;
267 }
268
269 /***********************************************************************
270  *      CM_Locate_DevNode_ExA (SETUPAPI.@)
271  */
272 CONFIGRET WINAPI CM_Locate_DevNode_ExA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags, HMACHINE hMachine)
273 {
274     FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags, hMachine);
275
276     return CR_FAILURE;
277 }
278
279 /***********************************************************************
280  *      CM_Locate_DevNode_ExW (SETUPAPI.@)
281  */
282 CONFIGRET WINAPI CM_Locate_DevNode_ExW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags, HMACHINE hMachine)
283 {
284     FIXME("%p %s 0x%08x %p: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags, hMachine);
285
286     return CR_FAILURE;
287 }
288
289 /***********************************************************************
290  *      CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
291  */
292 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(PULONG len, LPGUID class, DEVINSTID_A id,
293                                                        ULONG flags, HMACHINE machine)
294 {
295     FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_a(id), flags, machine);
296     return CR_FAILURE;
297 }
298
299 /***********************************************************************
300  *      CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
301  */
302 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class, DEVINSTID_W id,
303                                                        ULONG flags, HMACHINE machine)
304 {
305     FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine);
306     return CR_FAILURE;
307 }