user32: Constify some variables.
[wine] / dlls / 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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 "winreg.h"
29 #include "setupapi.h"
30
31 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
32
33 /***********************************************************************
34  *              TPWriteProfileString (SETUPX.62)
35  */
36 BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
37 {
38     FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
39     return TRUE;
40 }
41
42
43 /***********************************************************************
44  *              suErrorToIds  (SETUPX.61)
45  */
46 DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
47 {
48     FIXME( "%x %x: stub\n", w1, w2 );
49     return 0;
50 }
51
52 /***********************************************************************
53  *              CM_Connect_MachineW  (SETUPAPI.@)
54  */
55 DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine)
56 {
57 #define  CR_SUCCESS       0x00000000
58 #define  CR_ACCESS_DENIED 0x00000033
59   FIXME("\n");
60   return  CR_ACCESS_DENIED;
61 }
62
63 /***********************************************************************
64  *              CM_Disconnect_Machine  (SETUPAPI.@)
65  */
66 DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
67 {
68   FIXME("\n");
69   return  CR_SUCCESS;
70
71 }
72
73 /***********************************************************************
74  *              CM_Get_Device_IDA  (SETUPAPI.@)
75  */
76 DWORD WINAPI CM_Get_Device_IDA( LPVOID dnDevInst, LPSTR Buffer,
77                                    ULONG  BufferLen, ULONG  ulFlags)
78 {
79     FIXME("%p, %p, %u %u\n",dnDevInst, Buffer, BufferLen, ulFlags);
80     Buffer[0] = 0;
81     return CR_SUCCESS;
82 }
83
84 /***********************************************************************
85  *             CM_Get_Device_ID_ListA  (SETUPAPI.@)
86  */
87
88 DWORD WINAPI CM_Get_Device_ID_ListA(
89     PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
90 {
91     FIXME("%p %p %d %d\n", pszFilter, Buffer, BufferLen, ulFlags );
92     memset(Buffer,0,2);
93     return CR_SUCCESS;
94 }
95
96 /***********************************************************************
97  *              CM_Get_Device_ID_Size  (SETUPAPI.@)
98  */
99 DWORD WINAPI CM_Get_Device_ID_Size( ULONG*  pulLen, LPVOID dnDevInst,
100                                         ULONG  ulFlags)
101 {
102     FIXME("%p %p %u\n",pulLen, dnDevInst, ulFlags);
103     *pulLen = 1;
104     return CR_SUCCESS;
105 }
106
107 /***********************************************************************
108  *              SetupInitializeFileLogW(SETUPAPI.@)
109  */
110 HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
111 {
112     FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
113     return INVALID_HANDLE_VALUE;
114 }
115
116 /***********************************************************************
117  *              SetupInitializeFileLogA(SETUPAPI.@)
118  */
119 HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
120 {
121     FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
122     return INVALID_HANDLE_VALUE;
123 }
124
125 /***********************************************************************
126  *              SetupTerminateFileLog(SETUPAPI.@)
127  */
128 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
129 {
130     FIXME ("Stub %p\n",FileLogHandle);
131     return TRUE;
132 }
133
134 /***********************************************************************
135  *              RegistryDelnode(SETUPAPI.@)
136  */
137 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
138 {
139     FIXME("%08x %08x: stub\n", x, y);
140     return FALSE;
141 }
142
143 /***********************************************************************
144  *      SetupCloseLog(SETUPAPI.@)
145  */
146 void WINAPI SetupCloseLog(void)
147 {
148     FIXME("() stub\n");
149 }
150
151 /***********************************************************************
152  *      SetupLogErrorW(SETUPAPI.@)
153  */
154 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
155 {
156     FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
157     return TRUE;
158 }
159
160 /***********************************************************************
161  *      SetupOpenLog(SETUPAPI.@)
162  */
163 BOOL WINAPI SetupOpenLog(BOOL Reserved)
164 {
165     FIXME("(%d) stub\n", Reserved);
166     return TRUE;
167 }
168
169 /***********************************************************************
170  *      SetupPromptReboot(SETUPAPI.@)
171  */
172 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
173 {
174     FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
175     return 0;
176 }
177
178 /***********************************************************************
179  *      SetupSetSourceListA (SETUPAPI.@)
180  */
181 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
182 {
183     FIXME("0x%08x %p %d\n", flags, list, count);
184     return FALSE;
185 }
186
187 /***********************************************************************
188  *      SetupSetSourceListW (SETUPAPI.@)
189  */
190 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
191 {
192     FIXME("0x%08x %p %d\n", flags, list, count);
193     return FALSE;
194 }
195
196 /***********************************************************************
197  *      SetupDiGetINFClassA (SETUPAPI.@)
198  */
199 BOOL WINAPI SetupDiGetINFClassA(PCSTR inf, LPGUID class_guid, PSTR class_name,
200         DWORD size, PDWORD required_size)
201 {
202     FIXME("%s %p %p %d %p\n", debugstr_a(inf), class_guid, class_name, size, required_size);
203     return FALSE;
204 }
205
206 /***********************************************************************
207  *      SetupDiGetINFClassW (SETUPAPI.@)
208  */
209 BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
210         DWORD size, PDWORD required_size)
211 {
212     FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size);
213     return FALSE;
214 }