push 83f6eeab4f78cf34cba36fe6c2150f9c23ec0aba
[wine/hacks.git] / dlls / setupapi / stubs.c
blobaf1b0c3a295d9eff1e55ab1603fd3fa6ca65be83
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 "setupapi.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
33 /***********************************************************************
34 * TPWriteProfileString (SETUPX.62)
36 BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
38 FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
39 return TRUE;
43 /***********************************************************************
44 * suErrorToIds (SETUPX.61)
46 DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
48 FIXME( "%x %x: stub\n", w1, w2 );
49 return 0;
52 /***********************************************************************
53 * SetupDiGetDeviceInfoListDetailA (SETUPAPI.@)
55 BOOL WINAPI SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data )
57 FIXME("\n");
58 return FALSE;
61 /***********************************************************************
62 * SetupDiGetDeviceInfoListDetailW (SETUPAPI.@)
64 BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_W devinfo_data )
66 FIXME("\n");
67 return FALSE;
70 /***********************************************************************
71 * (SETUPAPI.@)
73 * NO WINAPI in description given
75 HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *class, PCSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCSTR machine, PVOID reserved)
77 FIXME("filter %s machine %s\n",debugstr_a(filter),debugstr_a(machine));
78 return FALSE;
81 /***********************************************************************
82 * CM_Connect_MachineW (SETUPAPI.@)
84 DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine)
86 #define CR_SUCCESS 0x00000000
87 #define CR_ACCESS_DENIED 0x00000033
88 FIXME("\n");
89 return CR_ACCESS_DENIED;
92 /***********************************************************************
93 * CM_Disconnect_Machine (SETUPAPI.@)
95 DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
97 FIXME("\n");
98 return CR_SUCCESS;
102 /***********************************************************************
103 * CM_Get_Device_ID_ListA (SETUPAPI.@)
106 DWORD WINAPI CM_Get_Device_ID_ListA(
107 PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
109 FIXME("%p %p %d %d\n", pszFilter, Buffer, BufferLen, ulFlags );
110 memset(Buffer,0,2);
111 return CR_SUCCESS;
114 /***********************************************************************
115 * SetupInitializeFileLogW(SETUPAPI.@)
117 HANDLE WINAPI SetupInitializeFileLogW(LPWSTR LogFileName, DWORD Flags)
119 FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
120 return INVALID_HANDLE_VALUE;
123 /***********************************************************************
124 * SetupInitializeFileLogA(SETUPAPI.@)
126 HANDLE WINAPI SetupInitializeFileLogA(LPSTR LogFileName, DWORD Flags)
128 FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
129 return INVALID_HANDLE_VALUE;
132 /***********************************************************************
133 * SetupTerminateFileLog(SETUPAPI.@)
135 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
137 FIXME ("Stub %p\n",FileLogHandle);
138 return TRUE;
141 /***********************************************************************
142 * RegistryDelnode(SETUPAPI.@)
144 BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
146 FIXME("%08x %08x: stub\n", x, y);
147 return FALSE;
150 /***********************************************************************
151 * SetupCloseLog(SETUPAPI.@)
153 void WINAPI SetupCloseLog(void)
155 FIXME("() stub\n");
158 /***********************************************************************
159 * SetupLogErrorW(SETUPAPI.@)
161 BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
163 FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
164 return TRUE;
167 /***********************************************************************
168 * SetupOpenLog(SETUPAPI.@)
170 BOOL WINAPI SetupOpenLog(BOOL Reserved)
172 FIXME("(%d) stub\n", Reserved);
173 return TRUE;
176 /***********************************************************************
177 * SetupPromptReboot(SETUPAPI.@)
179 INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
181 FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
182 return 0;
185 /***********************************************************************
186 * SetupSetSourceListA (SETUPAPI.@)
188 BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
190 FIXME("0x%08x %p %d\n", flags, list, count);
191 return FALSE;
194 /***********************************************************************
195 * SetupSetSourceListW (SETUPAPI.@)
197 BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
199 FIXME("0x%08x %p %d\n", flags, list, count);
200 return FALSE;
203 /***********************************************************************
204 * SetupDiGetINFClassA (SETUPAPI.@)
206 BOOL WINAPI SetupDiGetINFClassA(PCSTR inf, LPGUID class_guid, PSTR class_name,
207 DWORD size, PDWORD required_size)
209 FIXME("%s %p %p %d %p\n", debugstr_a(inf), class_guid, class_name, size, required_size);
210 return FALSE;
213 /***********************************************************************
214 * SetupDiGetINFClassW (SETUPAPI.@)
216 BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
217 DWORD size, PDWORD required_size)
219 FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size);
220 return FALSE;