xref: /reactos/dll/win32/setupapi/stubs.c (revision c424146e)
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  *		RegistryDelnode(SETUPAPI.@)
46  */
47 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
48 {
49     FIXME("%08x %08x: stub\n", x, y);
50     return FALSE;
51 }
52 
53 /***********************************************************************
54  *      SetupCloseLog(SETUPAPI.@)
55  */
56 void WINAPI SetupCloseLog(void)
57 {
58     FIXME("() stub\n");
59 }
60 
61 /***********************************************************************
62  *      SetupLogErrorW(SETUPAPI.@)
63  */
64 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
65 {
66     FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
67     return TRUE;
68 }
69 
70 /***********************************************************************
71  *      SetupOpenLog(SETUPAPI.@)
72  */
73 BOOL WINAPI SetupOpenLog(BOOL Reserved)
74 {
75     FIXME("(%d) stub\n", Reserved);
76     return TRUE;
77 }
78 
79 /***********************************************************************
80  *      SetupPromptReboot(SETUPAPI.@)
81  */
82 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
83 {
84     FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
85     return 0;
86 }
87 
88 /***********************************************************************
89  *      SetupSetSourceListA (SETUPAPI.@)
90  */
91 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
92 {
93     FIXME("0x%08x %p %d\n", flags, list, count);
94     return FALSE;
95 }
96 
97 /***********************************************************************
98  *      SetupSetSourceListW (SETUPAPI.@)
99  */
100 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
101 {
102     FIXME("0x%08x %p %d\n", flags, list, count);
103     return FALSE;
104 }
105 
106 /***********************************************************************
107  *      SetupPromptForDiskA (SETUPAPI.@)
108  */
109 UINT WINAPI SetupPromptForDiskA(HWND hwndParent, PCSTR DialogTitle, PCSTR DiskName,
110         PCSTR PathToSource, PCSTR FileSought, PCSTR TagFile, DWORD DiskPromptStyle,
111         PSTR PathBuffer, DWORD PathBufferSize, PDWORD PathRequiredSize)
112 {
113     FIXME("%p %s %s %s %s %s %d %p %d %p: stub\n", hwndParent, debugstr_a(DialogTitle),
114           debugstr_a(DiskName), debugstr_a(PathToSource), debugstr_a(FileSought),
115           debugstr_a(TagFile), DiskPromptStyle, PathBuffer, PathBufferSize,
116           PathRequiredSize);
117     return 0;
118 }
119 
120 /***********************************************************************
121  *      SetupPromptForDiskW (SETUPAPI.@)
122  */
123 UINT WINAPI SetupPromptForDiskW(HWND hwndParent, PCWSTR DialogTitle, PCWSTR DiskName,
124         PCWSTR PathToSource, PCWSTR FileSought, PCWSTR TagFile, DWORD DiskPromptStyle,
125         PWSTR PathBuffer, DWORD PathBufferSize, PDWORD PathRequiredSize)
126 {
127     FIXME("%p %s %s %s %s %s %d %p %d %p: stub\n", hwndParent, debugstr_w(DialogTitle),
128           debugstr_w(DiskName), debugstr_w(PathToSource), debugstr_w(FileSought),
129           debugstr_w(TagFile), DiskPromptStyle, PathBuffer, PathBufferSize,
130           PathRequiredSize);
131     return 0;
132 }
133 
134 /***********************************************************************
135  *		SetupDiRemoveDevice(SETUPAPI.@)
136  */
137 BOOL WINAPI
138 SetupDiRemoveDevice(
139     IN HDEVINFO DeviceInfoSet,
140     IN PSP_DEVINFO_DATA DeviceInfoData)
141 {
142     FIXME ("Stub %p %p\n", DeviceInfoSet, DeviceInfoData);
143     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
144     return FALSE;
145 }
146 
147 
148 /***********************************************************************
149  *		SetupDiUnremoveDevice(SETUPAPI.@)
150  */
151 BOOL WINAPI
152 SetupDiUnremoveDevice(
153     IN HDEVINFO DeviceInfoSet,
154     IN PSP_DEVINFO_DATA DeviceInfoData)
155 {
156     FIXME ("Stub %p %p\n", DeviceInfoSet, DeviceInfoData);
157     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
158     return FALSE;
159 }
160 
161 
162 /***********************************************************************
163  *		CMP_RegisterNotification(SETUPAPI.@)
164  */
165 CONFIGRET
166 WINAPI
167 CMP_RegisterNotification(
168   IN HANDLE hRecipient,
169   IN LPVOID lpvNotificationFilter,
170   IN DWORD  dwFlags,
171   OUT PULONG pluhDevNotify)
172 {
173     FIXME ("Stub %p %p %lu %p\n", hRecipient, lpvNotificationFilter, dwFlags, pluhDevNotify);
174     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
175     return CR_FAILURE;
176 }
177 
178 
179 /***********************************************************************
180  *		CMP_UnregisterNotification(SETUPAPI.@)
181  */
182 CONFIGRET
183 WINAPI
184 CMP_UnregisterNotification(IN HDEVNOTIFY handle)
185 {
186     FIXME ("Stub %p\n", handle);
187     return CR_SUCCESS;
188 }
189 
190 /***********************************************************************
191  *      CM_Get_Device_Interface_List_Size_ExA (SETUPAPI.@)
192  */
193 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(PULONG len, LPGUID class, DEVINSTID_A id,
194                                                        ULONG flags, HMACHINE machine)
195 {
196     FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_a(id), flags, machine);
197     return CR_FAILURE;
198 }
199 
200 /***********************************************************************
201  *      CM_Get_Device_Interface_List_Size_ExW (SETUPAPI.@)
202  */
203 CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class, DEVINSTID_W id,
204                                                        ULONG flags, HMACHINE machine)
205 {
206     FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine);
207     return CR_FAILURE;
208 }
209 
210 WINSETUPAPI BOOL WINAPI SetupDiGetDeviceInterfaceAlias(IN HDEVINFO  DeviceInfoSet, IN PSP_DEVICE_INTERFACE_DATA  DeviceInterfaceData, IN CONST GUID *AliasInterfaceClassGuid, OUT PSP_DEVICE_INTERFACE_DATA  AliasDeviceInterfaceData)
211 {
212     FIXME("%p %p %p %p %p stub\n", DeviceInfoSet, DeviceInterfaceData, AliasInterfaceClassGuid, AliasDeviceInterfaceData);
213     SetLastError(ERROR_INVALID_PARAMETER);
214     return FALSE;
215 }
216 
217 WINSETUPAPI BOOL WINAPI SetupSetNonInteractiveMode(BOOL NonInteractiveFlag)
218 {
219     FIXME("(%d) stub\n", NonInteractiveFlag);
220     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
221     return FALSE;
222 }
223 
224