setupapi: Handle the SP_COPY_NOOVERWRITE flag.
[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 "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  *              SetupDiGetDeviceInfoListDetailA  (SETUPAPI.@)
55  */
56 BOOL WINAPI SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data )
57 {
58   FIXME("\n");
59   return FALSE;
60 }
61
62 /***********************************************************************
63  *              SetupDiGetDeviceInfoListDetailW  (SETUPAPI.@)
64  */
65 BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_W devinfo_data )
66 {
67   FIXME("\n");
68   return FALSE;
69 }
70
71 /***********************************************************************
72  *                (SETUPAPI.@)
73  *
74  * NO WINAPI in description given
75  */
76 HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *class, PCSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCSTR machine, PVOID reserved)
77 {
78   FIXME("filter %s machine %s\n",debugstr_a(filter),debugstr_a(machine));
79   return FALSE;
80 }
81
82 /***********************************************************************
83  *              CM_Connect_MachineW  (SETUPAPI.@)
84  */
85 DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine)
86 {
87 #define  CR_SUCCESS       0x00000000
88 #define  CR_ACCESS_DENIED 0x00000033
89   FIXME("\n");
90   return  CR_ACCESS_DENIED;
91 }
92
93 /***********************************************************************
94  *              CM_Disconnect_Machine  (SETUPAPI.@)
95  */
96 DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
97 {
98   FIXME("\n");
99   return  CR_SUCCESS;
100
101 }
102
103 /***********************************************************************
104  *             CM_Get_Device_ID_ListA  (SETUPAPI.@)
105  */
106
107 DWORD WINAPI CM_Get_Device_ID_ListA(
108     PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
109 {
110     FIXME("%p %p %d %d\n", pszFilter, Buffer, BufferLen, ulFlags );
111     memset(Buffer,0,2);
112     return CR_SUCCESS;
113 }
114
115 /***********************************************************************
116  *              SetupInitializeFileLogW(SETUPAPI.@)
117  */
118 HANDLE WINAPI SetupInitializeFileLogW(LPWSTR LogFileName, DWORD Flags)
119 {
120     FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
121     return INVALID_HANDLE_VALUE;
122 }
123
124 /***********************************************************************
125  *              SetupInitializeFileLogA(SETUPAPI.@)
126  */
127 HANDLE WINAPI SetupInitializeFileLogA(LPSTR LogFileName, DWORD Flags)
128 {
129     FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
130     return INVALID_HANDLE_VALUE;
131 }
132
133 /***********************************************************************
134  *              SetupTerminateFileLog(SETUPAPI.@)
135  */
136 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
137 {
138     FIXME ("Stub %p\n",FileLogHandle);
139     return TRUE;
140 }
141
142 /***********************************************************************
143  *              RegistryDelnode(SETUPAPI.@)
144  */
145 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
146 {
147     FIXME("%08x %08x: stub\n", x, y);
148     return FALSE;
149 }
150
151 /***********************************************************************
152  *      SetupCloseLog(SETUPAPI.@)
153  */
154 void WINAPI SetupCloseLog()
155 {
156     FIXME("() stub\n");
157 }
158
159 /***********************************************************************
160  *      SetupLogErrorW(SETUPAPI.@)
161  */
162 BOOL WINAPI SetupLogErrorW(PCWSTR MessageString, LogSeverity Severity)
163 {
164     FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
165     return TRUE;
166 }
167
168 /***********************************************************************
169  *      SetupOpenLog(SETUPAPI.@)
170  */
171 BOOL WINAPI SetupOpenLog(BOOL Reserved)
172 {
173     FIXME("(%d) stub\n", Reserved);
174     return TRUE;
175 }
176
177 /***********************************************************************
178  *      SetupPromptReboot(SETUPAPI.@)
179  */
180 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
181 {
182     FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
183     return 0;
184 }
185
186 /***********************************************************************
187  *      SetupSetSourceListA (SETUPAPI.@)
188  */
189 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
190 {
191     FIXME("0x%08x %p %d\n", flags, list, count);
192     return FALSE;
193 }
194
195 /***********************************************************************
196  *      SetupSetSourceListW (SETUPAPI.@)
197  */
198 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
199 {
200     FIXME("0x%08x %p %d\n", flags, list, count);
201     return FALSE;
202 }
203
204 /***********************************************************************
205  *      SetupDiGetINFClassA (SETUPAPI.@)
206  */
207 BOOL WINAPI SetupDiGetINFClassA(PCSTR inf, LPGUID class_guid, PSTR class_name,
208         DWORD size, PDWORD required_size)
209 {
210     FIXME("%s %p %p %d %p\n", debugstr_a(inf), class_guid, class_name, size, required_size);
211     return FALSE;
212 }
213
214 /***********************************************************************
215  *      SetupDiGetINFClassW (SETUPAPI.@)
216  */
217 BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
218         DWORD size, PDWORD required_size)
219 {
220     FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size);
221     return FALSE;
222 }