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