[MMIXER]
[reactos.git] / reactos / dll / win32 / 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 "setupapi_private.h"
22
23 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
24
25 /***********************************************************************
26 * TPWriteProfileString (SETUPX.62)
27 */
28 BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
29 {
30 FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
31 return TRUE;
32 }
33
34
35 /***********************************************************************
36 * suErrorToIds (SETUPX.61)
37 */
38 DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
39 {
40 FIXME( "%x %x: stub\n", w1, w2 );
41 return 0;
42 }
43
44 /***********************************************************************
45 * SetupInitializeFileLogW(SETUPAPI.@)
46 */
47 HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
48 {
49 FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
50 return INVALID_HANDLE_VALUE;
51 }
52
53 /***********************************************************************
54 * SetupInitializeFileLogA(SETUPAPI.@)
55 */
56 HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
57 {
58 FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
59 return INVALID_HANDLE_VALUE;
60 }
61
62 /***********************************************************************
63 * SetupTerminateFileLog(SETUPAPI.@)
64 */
65 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
66 {
67 FIXME ("Stub %p\n",FileLogHandle);
68 return TRUE;
69 }
70
71 /***********************************************************************
72 * RegistryDelnode(SETUPAPI.@)
73 */
74 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
75 {
76 FIXME("%08x %08x: stub\n", x, y);
77 return FALSE;
78 }
79
80 /***********************************************************************
81 * SetupCloseLog(SETUPAPI.@)
82 */
83 void WINAPI SetupCloseLog(void)
84 {
85 FIXME("() stub\n");
86 }
87
88 /***********************************************************************
89 * SetupLogErrorW(SETUPAPI.@)
90 */
91 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
92 {
93 FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
94 return TRUE;
95 }
96
97 /***********************************************************************
98 * SetupOpenLog(SETUPAPI.@)
99 */
100 BOOL WINAPI SetupOpenLog(BOOL Reserved)
101 {
102 FIXME("(%d) stub\n", Reserved);
103 return TRUE;
104 }
105
106 /***********************************************************************
107 * SetupPromptReboot(SETUPAPI.@)
108 */
109 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
110 {
111 FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
112 return 0;
113 }
114
115 /***********************************************************************
116 * SetupSetSourceListA (SETUPAPI.@)
117 */
118 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
119 {
120 FIXME("0x%08x %p %d\n", flags, list, count);
121 return FALSE;
122 }
123
124 /***********************************************************************
125 * SetupSetSourceListW (SETUPAPI.@)
126 */
127 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
128 {
129 FIXME("0x%08x %p %d\n", flags, list, count);
130 return FALSE;
131 }
132
133 /***********************************************************************
134 * SetupPromptForDiskA (SETUPAPI.@)
135 */
136 UINT WINAPI SetupPromptForDiskA(HWND hwndParent, PCSTR DialogTitle, PCSTR DiskName,
137 PCSTR PathToSource, PCSTR FileSought, PCSTR TagFile, DWORD DiskPromptStyle,
138 PSTR PathBuffer, DWORD PathBufferSize, PDWORD PathRequiredSize)
139 {
140 FIXME("%p %s %s %s %s %s %d %p %d %p: stub\n", hwndParent, debugstr_a(DialogTitle),
141 debugstr_a(DiskName), debugstr_a(PathToSource), debugstr_a(FileSought),
142 debugstr_a(TagFile), DiskPromptStyle, PathBuffer, PathBufferSize,
143 PathRequiredSize);
144 return 0;
145 }
146
147 /***********************************************************************
148 * SetupPromptForDiskW (SETUPAPI.@)
149 */
150 UINT WINAPI SetupPromptForDiskW(HWND hwndParent, PCWSTR DialogTitle, PCWSTR DiskName,
151 PCWSTR PathToSource, PCWSTR FileSought, PCWSTR TagFile, DWORD DiskPromptStyle,
152 PWSTR PathBuffer, DWORD PathBufferSize, PDWORD PathRequiredSize)
153 {
154 FIXME("%p %s %s %s %s %s %d %p %d %p: stub\n", hwndParent, debugstr_w(DialogTitle),
155 debugstr_w(DiskName), debugstr_w(PathToSource), debugstr_w(FileSought),
156 debugstr_w(TagFile), DiskPromptStyle, PathBuffer, PathBufferSize,
157 PathRequiredSize);
158 return 0;
159 }
160
161 /***********************************************************************
162 * SetupDiRemoveDevice(SETUPAPI.@)
163 */
164 BOOL WINAPI
165 SetupDiRemoveDevice(
166 IN HDEVINFO DeviceInfoSet,
167 IN PSP_DEVINFO_DATA DeviceInfoData)
168 {
169 FIXME ("Stub %p %p\n", DeviceInfoSet, DeviceInfoData);
170 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
171 return FALSE;
172 }
173
174
175 /***********************************************************************
176 * SetupDiUnremoveDevice(SETUPAPI.@)
177 */
178 BOOL WINAPI
179 SetupDiUnremoveDevice(
180 IN HDEVINFO DeviceInfoSet,
181 IN PSP_DEVINFO_DATA DeviceInfoData)
182 {
183 FIXME ("Stub %p %p\n", DeviceInfoSet, DeviceInfoData);
184 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
185 return FALSE;
186 }
187
188
189 /***********************************************************************
190 * CMP_RegisterNotification(SETUPAPI.@)
191 */
192 CONFIGRET
193 WINAPI
194 CMP_RegisterNotification(
195 IN HANDLE hRecipient,
196 IN LPVOID lpvNotificationFilter,
197 IN DWORD dwFlags,
198 OUT PULONG pluhDevNotify)
199 {
200 FIXME ("Stub %p %p %lu %p\n", hRecipient, lpvNotificationFilter, dwFlags, pluhDevNotify);
201 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
202 return CR_FAILURE;
203 }
204
205
206 /***********************************************************************
207 * CMP_UnregisterNotification(SETUPAPI.@)
208 */
209 CONFIGRET
210 WINAPI
211 CMP_UnregisterNotification(IN HDEVNOTIFY handle)
212 {
213 FIXME ("Stub %p\n", handle);
214 return CR_SUCCESS;
215 }
216
217 /***********************************************************************
218 * CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
219 */
220 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(PULONG len, LPGUID class, DEVINSTID_A id,
221 ULONG flags, HMACHINE machine)
222 {
223 FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_a(id), flags, machine);
224 return CR_FAILURE;
225 }
226
227 /***********************************************************************
228 * CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
229 */
230 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class, DEVINSTID_W id,
231 ULONG flags, HMACHINE machine)
232 {
233 FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine);
234 return CR_FAILURE;
235 }
236
237 WINSETUPAPI BOOL WINAPI SetupDiGetDeviceInterfaceAlias(IN HDEVINFO DeviceInfoSet, IN PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData, IN CONST GUID *AliasInterfaceClassGuid, OUT PSP_DEVICE_INTERFACE_DATA AliasDeviceInterfaceData)
238 {
239 FIXME("%p %p %p %p %p stub\n", DeviceInfoSet, DeviceInterfaceData, AliasInterfaceClassGuid, AliasDeviceInterfaceData);
240 SetLastError(ERROR_INVALID_PARAMETER);
241 return FALSE;
242 }
243
244 HKEY WINAPI SetupDiOpenDeviceInterfaceRegKey(IN HDEVINFO DeviceInfoSet, IN PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData, IN DWORD Reserved, IN REGSAM samDesired)
245 {
246 FIXME("%p %p %p 0x%08x 0x%08x: stub\n", DeviceInfoSet, DeviceInterfaceData, Reserved, samDesired);
247 return INVALID_HANDLE_VALUE;
248 }