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