8465b35f9fa5b6f291d6c718ab418d934e71ac36
[reactos.git] / reactos / lib / 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #include <stdarg.h>
22
23 #include "wine/debug.h"
24 #include "windef.h"
25 #include "winbase.h"
26 #include "wingdi.h"
27 #include "winuser.h"
28 #include "winnls.h"
29 #include "winreg.h"
30 #include "setupapi.h"
31
32 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
33
34 /***********************************************************************
35 * TPWriteProfileString (SETUPX.62)
36 */
37 BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
38 {
39 FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
40 return TRUE;
41 }
42
43
44 /***********************************************************************
45 * suErrorToIds (SETUPX.61)
46 */
47 DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
48 {
49 FIXME( "%x %x: stub\n", w1, w2 );
50 return 0;
51 }
52
53 /***********************************************************************
54 * SetupDiOpenClassRegKeyExW (SETUPAPI.@)
55 *
56 * WINAPI in description not given
57 */
58 HKEY WINAPI SetupDiOpenClassRegKeyExW(const GUID* class, REGSAM access, DWORD flags, PCWSTR machine, PVOID reserved)
59 {
60 FIXME("\n");
61 return INVALID_HANDLE_VALUE;
62 }
63
64 /***********************************************************************
65 * SetupDiGetClassDescriptionExW (SETUPAPI.@)
66 */
67 BOOL WINAPI SetupDiGetClassDescriptionExW (const GUID* class, PWSTR desc, DWORD size, PDWORD required, PCWSTR machine, PVOID reserved)
68 {
69 FIXME("\n");
70 return FALSE;
71 }
72
73 /***********************************************************************
74 * SetupDiClassNameFromGuidExW (SETUPAPI.@)
75 */
76 BOOL WINAPI SetupDiClassNameFromGuidExW (const GUID* class, PWSTR desc, DWORD size, PDWORD required, PCWSTR machine, PVOID reserved)
77 {
78 FIXME("\n");
79 return FALSE;
80 }
81
82 /***********************************************************************
83 * SetupDiBuildClassInfoListExW (SETUPAPI.@)
84 */
85 BOOL WINAPI SetupDiBuildClassInfoListExW(DWORD flags, LPGUID list, DWORD size, PDWORD required, LPCWSTR machine, PVOID reserved)
86 {
87 FIXME("\n");
88 return FALSE;
89 }
90
91 /***********************************************************************
92 * SetupDiGetDeviceInfoListDetailA (SETUPAPI.@)
93 */
94 BOOL WINAPI SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data )
95 {
96 FIXME("\n");
97 return FALSE;
98 }
99
100 /***********************************************************************
101 * SetupDiGetDeviceInfoListDetailW (SETUPAPI.@)
102 */
103 BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_W devinfo_data )
104 {
105 FIXME("\n");
106 return FALSE;
107 }
108
109 /***********************************************************************
110 * SetupDiCreateDeviceInfoListA (SETUPAPI.@)
111 */
112 HDEVINFO WINAPI SetupDiCreateDeviceInfoList(const GUID *class, HWND parend)
113 {
114 FIXME("\n");
115 return FALSE;
116 }
117
118 /***********************************************************************
119 * SetupDiCreateDeviceInfoListExW (SETUPAPI.@)
120 */
121 HDEVINFO WINAPI SetupDiCreateDeviceInfoListExW(const GUID *class, HWND parend , PCWSTR machine, PVOID reserved)
122 {
123 FIXME("\n");
124 return FALSE;
125 }
126
127 /***********************************************************************
128 * (SETUPAPI.@)
129 *
130 * NO WINAPI in description given
131 */
132 HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *class, PCSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCSTR machine, PVOID reserved)
133 {
134 FIXME("filter %s machine %s\n",debugstr_a(filter),debugstr_a(machine));
135 return FALSE;
136 }
137
138 /***********************************************************************
139 * (SETUPAPI.@)
140 *
141 * NO WINAPI in description given
142 */
143 HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCWSTR machine, PVOID reserved)
144 {
145 FIXME("\n");
146 return FALSE;
147 }
148
149 /***********************************************************************
150 * SetupDiClassGuidsFromNameExW (SETUPAPI.@)
151 */
152 BOOL WINAPI SetupDiClassGuidsFromNameExW(LPCWSTR class, LPGUID list, DWORD size, PDWORD required, LPCWSTR machine, PVOID reserved)
153 {
154 FIXME("\n");
155 return FALSE;
156 }
157
158 /***********************************************************************
159 * CM_Connect_MachineW (SETUPAPI.@)
160 */
161 DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine)
162 {
163 #define CR_SUCCESS 0x00000000
164 #define CR_ACCESS_DENIED 0x00000033
165 FIXME("\n");
166 return CR_ACCESS_DENIED;
167 }
168
169 /***********************************************************************
170 * CM_Disconnect_Machine (SETUPAPI.@)
171 */
172 DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
173 {
174 FIXME("\n");
175 return CR_SUCCESS;
176
177 }
178
179 /***********************************************************************
180 * SetupCopyOEMInfA (SETUPAPI.@)
181 */
182 BOOL WINAPI SetupCopyOEMInfA(PCSTR sourceinffile, PCSTR sourcemedialoc,
183 DWORD mediatype, DWORD copystyle, PSTR destinfname,
184 DWORD destnamesize, PDWORD required,
185 PSTR *destinfnamecomponent)
186 {
187 FIXME("stub: source %s location %s ...\n",sourceinffile, sourcemedialoc);
188 return FALSE;
189 }
190
191 /***********************************************************************
192 * SetupGetInfInformationA (SETUPAPI.@)
193 */
194 BOOL WINAPI SetupGetInfInformationA( LPCVOID InfSpec, DWORD SearchControl,
195 PSP_INF_INFORMATION ReturnBuffer,
196 DWORD ReturnBufferSize, PDWORD RequiredSize)
197 {
198 FIXME("(%p, %ld, %p, %ld, %p) Stub!\n",
199 InfSpec, SearchControl, ReturnBuffer, ReturnBufferSize, RequiredSize );
200 return TRUE;
201 }
202
203 /***********************************************************************
204 * SetupInitializeFileLogW(SETUPAPI.@)
205 */
206 HANDLE WINAPI SetupInitializeFileLogW(LPWSTR LogFileName, DWORD Flags)
207 {
208 FIXME("Stub %s, 0x%lx\n",debugstr_w(LogFileName),Flags);
209 return INVALID_HANDLE_VALUE;
210 }
211
212 /***********************************************************************
213 * SetupInitializeFileLogA(SETUPAPI.@)
214 */
215 HANDLE WINAPI SetupInitializeFileLogA(LPSTR LogFileName, DWORD Flags)
216 {
217 FIXME("Stub %s, 0x%lx\n",debugstr_a(LogFileName),Flags);
218 return INVALID_HANDLE_VALUE;
219 }
220
221 /***********************************************************************
222 * SetupTerminateFileLog(SETUPAPI.@)
223 */
224 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
225 {
226 FIXME ("Stub %p\n",FileLogHandle);
227 return TRUE;
228 }