push eb25bf65c4616aa55a810ed5c29198b1a080b208
[wine/hacks.git] / dlls / setupapi / stubs.c
blob39974478197379cdbfeb99e2dd856833461d2d2c
1 /*
2 * SetupAPI stubs
4 * Copyright 2000 James Hatheway
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.
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.
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
21 #include <stdarg.h>
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 "cfgmgr32.h"
30 #include "setupapi.h"
31 #include "winnls.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
35 /***********************************************************************
36 * TPWriteProfileString (SETUPX.62)
38 BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
40 FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
41 return TRUE;
45 /***********************************************************************
46 * suErrorToIds (SETUPX.61)
48 DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
50 FIXME( "%x %x: stub\n", w1, w2 );
51 return 0;
54 /***********************************************************************
55 * CM_Connect_MachineA (SETUPAPI.@)
57 CONFIGRET WINAPI CM_Connect_MachineA(PCSTR name, PHMACHINE machine)
59 FIXME("(%s %p) stub\n", name, machine);
60 return CR_ACCESS_DENIED;
63 /***********************************************************************
64 * CM_Connect_MachineW (SETUPAPI.@)
66 CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR name, PHMACHINE machine)
68 FIXME("\n");
69 return CR_ACCESS_DENIED;
72 /***********************************************************************
73 * CM_Create_DevNodeA (SETUPAPI.@)
75 CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, DEVINST dnParent, ULONG ulFlags)
77 FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, pDeviceID, dnParent, ulFlags);
78 return CR_SUCCESS;
81 /***********************************************************************
82 * CM_Create_DevNodeW (SETUPAPI.@)
84 CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, DEVINST dnParent, ULONG ulFlags)
86 FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, debugstr_w(pDeviceID), dnParent, ulFlags);
87 return CR_SUCCESS;
90 /***********************************************************************
91 * CM_Disconnect_Machine (SETUPAPI.@)
93 CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
95 FIXME("\n");
96 return CR_SUCCESS;
100 /***********************************************************************
101 * CM_Get_Device_ID_ListA (SETUPAPI.@)
104 CONFIGRET WINAPI CM_Get_Device_ID_ListA(
105 PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
107 FIXME("%p %p %d %d\n", pszFilter, Buffer, BufferLen, ulFlags );
108 memset(Buffer,0,2);
109 return CR_SUCCESS;
112 /***********************************************************************
113 * CM_Get_Parent (SETUPAPI.@)
115 DWORD WINAPI CM_Get_Parent(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags)
117 FIXME("%p 0x%08x 0x%08x stub\n", pdnDevInst, dnDevInst, ulFlags);
118 *pdnDevInst = dnDevInst;
119 return CR_SUCCESS;
122 /***********************************************************************
123 * SetupInitializeFileLogW(SETUPAPI.@)
125 HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
127 FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
128 return INVALID_HANDLE_VALUE;
131 /***********************************************************************
132 * SetupInitializeFileLogA(SETUPAPI.@)
134 HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
136 FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
137 return INVALID_HANDLE_VALUE;
140 /***********************************************************************
141 * SetupTerminateFileLog(SETUPAPI.@)
143 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
145 FIXME ("Stub %p\n",FileLogHandle);
146 return TRUE;
149 /***********************************************************************
150 * RegistryDelnode(SETUPAPI.@)
152 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
154 FIXME("%08x %08x: stub\n", x, y);
155 return FALSE;
158 /***********************************************************************
159 * SetupCloseLog(SETUPAPI.@)
161 void WINAPI SetupCloseLog(void)
163 FIXME("() stub\n");
166 /***********************************************************************
167 * SetupLogErrorW(SETUPAPI.@)
169 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
171 FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
172 return TRUE;
175 /***********************************************************************
176 * SetupOpenLog(SETUPAPI.@)
178 BOOL WINAPI SetupOpenLog(BOOL Reserved)
180 FIXME("(%d) stub\n", Reserved);
181 return TRUE;
184 /***********************************************************************
185 * SetupPromptReboot(SETUPAPI.@)
187 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
189 FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
190 return 0;
193 /***********************************************************************
194 * SetupSetSourceListA (SETUPAPI.@)
196 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
198 FIXME("0x%08x %p %d\n", flags, list, count);
199 return FALSE;
202 /***********************************************************************
203 * SetupSetSourceListW (SETUPAPI.@)
205 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
207 FIXME("0x%08x %p %d\n", flags, list, count);
208 return FALSE;
211 /***********************************************************************
212 * SetupDiGetINFClassA (SETUPAPI.@)
214 BOOL WINAPI SetupDiGetINFClassA(PCSTR inf, LPGUID class_guid, PSTR class_name,
215 DWORD size, PDWORD required_size)
217 FIXME("%s %p %p %d %p\n", debugstr_a(inf), class_guid, class_name, size, required_size);
218 return FALSE;
221 /***********************************************************************
222 * SetupDiGetINFClassW (SETUPAPI.@)
224 BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
225 DWORD size, PDWORD required_size)
227 FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size);
228 return FALSE;
231 /***********************************************************************
232 * SetupDiDestroyClassImageList (SETUPAPI.@)
234 BOOL WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData)
236 FIXME("(%p) stub\n", ClassListImageData);
237 return TRUE;
240 /***********************************************************************
241 * SetupDiGetClassImageList (SETUPAPI.@)
243 BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
245 FIXME("(%p) stub\n", ClassImageListData);
246 return FALSE;
249 /***********************************************************************
250 * CM_Locate_DevNodeA (SETUPAPI.@)
252 CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags)
254 FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags);
256 return CR_FAILURE;
259 /***********************************************************************
260 * CM_Locate_DevNodeW (SETUPAPI.@)
262 CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags)
264 FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags);
266 return CR_FAILURE;