xref: /reactos/dll/win32/setupapi/stubs.c (revision b819608e)
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 /***********************************************************************
24  *		pSetupRegistryDelnode(SETUPAPI.@)
25  */
26 BOOL WINAPI pSetupRegistryDelnode(DWORD x, DWORD y)
27 {
28     FIXME("%08x %08x: stub\n", x, y);
29     return FALSE;
30 }
31 
32 /***********************************************************************
33  *      SetupCloseLog(SETUPAPI.@)
34  */
35 void WINAPI SetupCloseLog(void)
36 {
37     FIXME("() stub\n");
38 }
39 
40 /***********************************************************************
41  *      SetupLogErrorW(SETUPAPI.@)
42  */
43 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
44 {
45     FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
46     return TRUE;
47 }
48 
49 /***********************************************************************
50  *      SetupOpenLog(SETUPAPI.@)
51  */
52 BOOL WINAPI SetupOpenLog(BOOL Reserved)
53 {
54     FIXME("(%d) stub\n", Reserved);
55     return TRUE;
56 }
57 
58 /***********************************************************************
59  *      SetupPromptReboot(SETUPAPI.@)
60  */
61 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
62 {
63     FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
64     return 0;
65 }
66 
67 /***********************************************************************
68  *      SetupSetSourceListA (SETUPAPI.@)
69  */
70 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
71 {
72     FIXME("0x%08x %p %d\n", flags, list, count);
73     return FALSE;
74 }
75 
76 /***********************************************************************
77  *      SetupSetSourceListW (SETUPAPI.@)
78  */
79 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
80 {
81     FIXME("0x%08x %p %d\n", flags, list, count);
82     return FALSE;
83 }
84 
85 /***********************************************************************
86  *      SetupPromptForDiskA (SETUPAPI.@)
87  */
88 UINT WINAPI SetupPromptForDiskA(HWND hwndParent, PCSTR DialogTitle, PCSTR DiskName,
89         PCSTR PathToSource, PCSTR FileSought, PCSTR TagFile, DWORD DiskPromptStyle,
90         PSTR PathBuffer, DWORD PathBufferSize, PDWORD PathRequiredSize)
91 {
92     FIXME("%p %s %s %s %s %s %d %p %d %p: stub\n", hwndParent, debugstr_a(DialogTitle),
93           debugstr_a(DiskName), debugstr_a(PathToSource), debugstr_a(FileSought),
94           debugstr_a(TagFile), DiskPromptStyle, PathBuffer, PathBufferSize,
95           PathRequiredSize);
96     return 0;
97 }
98 
99 /***********************************************************************
100  *      SetupPromptForDiskW (SETUPAPI.@)
101  */
102 UINT WINAPI SetupPromptForDiskW(HWND hwndParent, PCWSTR DialogTitle, PCWSTR DiskName,
103         PCWSTR PathToSource, PCWSTR FileSought, PCWSTR TagFile, DWORD DiskPromptStyle,
104         PWSTR PathBuffer, DWORD PathBufferSize, PDWORD PathRequiredSize)
105 {
106     FIXME("%p %s %s %s %s %s %d %p %d %p: stub\n", hwndParent, debugstr_w(DialogTitle),
107           debugstr_w(DiskName), debugstr_w(PathToSource), debugstr_w(FileSought),
108           debugstr_w(TagFile), DiskPromptStyle, PathBuffer, PathBufferSize,
109           PathRequiredSize);
110     return 0;
111 }
112 
113 /***********************************************************************
114  *      SetupDiRemoveDevice(SETUPAPI.@)
115  */
116 BOOL WINAPI
117 SetupDiRemoveDevice(
118     IN HDEVINFO DeviceInfoSet,
119     IN PSP_DEVINFO_DATA DeviceInfoData)
120 {
121     FIXME ("Stub %p %p\n", DeviceInfoSet, DeviceInfoData);
122     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
123     return FALSE;
124 }
125 
126 
127 /***********************************************************************
128  *      SetupDiUnremoveDevice(SETUPAPI.@)
129  */
130 BOOL WINAPI
131 SetupDiUnremoveDevice(
132     IN HDEVINFO DeviceInfoSet,
133     IN PSP_DEVINFO_DATA DeviceInfoData)
134 {
135     FIXME ("Stub %p %p\n", DeviceInfoSet, DeviceInfoData);
136     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
137     return FALSE;
138 }
139 
140 
141 WINSETUPAPI BOOL WINAPI SetupDiGetDeviceInterfaceAlias(IN HDEVINFO  DeviceInfoSet, IN PSP_DEVICE_INTERFACE_DATA  DeviceInterfaceData, IN CONST GUID *AliasInterfaceClassGuid, OUT PSP_DEVICE_INTERFACE_DATA  AliasDeviceInterfaceData)
142 {
143     FIXME("%p %p %p %p %p stub\n", DeviceInfoSet, DeviceInterfaceData, AliasInterfaceClassGuid, AliasDeviceInterfaceData);
144     SetLastError(ERROR_INVALID_PARAMETER);
145     return FALSE;
146 }
147 
148 WINSETUPAPI BOOL WINAPI SetupSetNonInteractiveMode(BOOL NonInteractiveFlag)
149 {
150     FIXME("(%d) stub\n", NonInteractiveFlag);
151     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
152     return FALSE;
153 }
154 
155 /***********************************************************************
156  *      SetupVerifyInfFileA(SETUPAPI.@)
157  */
158 BOOL WINAPI
159 SetupVerifyInfFileA(
160     IN PCSTR InfName,
161     IN PSP_ALTPLATFORM_INFO AltPlatformInfo,
162     OUT PSP_INF_SIGNER_INFO_A InfFileName)
163 {
164     FIXME ("Stub %s %p %p\n", debugstr_a(InfName), AltPlatformInfo, InfFileName);
165     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
166     return FALSE;
167 }
168 
169 /***********************************************************************
170  *      SetupVerifyInfFileW(SETUPAPI.@)
171  */
172 BOOL WINAPI
173 SetupVerifyInfFileW(
174     IN PCWSTR InfName,
175     IN PSP_ALTPLATFORM_INFO AltPlatformInfo,
176     OUT PSP_INF_SIGNER_INFO_W InfFileName)
177 {
178     FIXME ("Stub %s %p %p\n", debugstr_w(InfName), AltPlatformInfo, InfFileName);
179     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
180     return FALSE;
181 }
182 
183