blob: bb52803c63482366b1db25c88542535e236c9977 [file] [log] [blame]
Francois Jacquesdf5e5792000-07-08 18:27:03 +00001/*
2 * SetupAPI stubs
3 *
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00004 * 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
Jonathan Ernst360a3f92006-05-18 14:49:52 +020018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Francois Jacquesdf5e5792000-07-08 18:27:03 +000019 */
20
Alexandre Julliarde37c6e12003-09-05 23:08:26 +000021#include <stdarg.h>
22
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000023#include "wine/debug.h"
Francois Jacquesdf5e5792000-07-08 18:27:03 +000024#include "windef.h"
Alexandre Julliarde37c6e12003-09-05 23:08:26 +000025#include "winbase.h"
26#include "wingdi.h"
27#include "winuser.h"
28#include "winnls.h"
Steven Edwardsb2b72622003-09-11 02:58:46 +000029#include "winreg.h"
James Hathewaycb655b02000-11-06 20:24:43 +000030#include "setupapi.h"
31
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000032WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
Francois Jacquesdf5e5792000-07-08 18:27:03 +000033
James Hathewaycb655b02000-11-06 20:24:43 +000034/***********************************************************************
Patrik Stridvall14c96c12002-04-03 02:37:09 +000035 * TPWriteProfileString (SETUPX.62)
James Juranc85144b2001-01-17 20:17:46 +000036 */
Alexandre Julliard50683472002-04-02 02:57:50 +000037BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
James Juranc85144b2001-01-17 20:17:46 +000038{
Alexandre Julliard50683472002-04-02 02:57:50 +000039 FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
40 return TRUE;
James Hathewaycb655b02000-11-06 20:24:43 +000041}
42
43
44/***********************************************************************
Patrik Stridvall14c96c12002-04-03 02:37:09 +000045 * suErrorToIds (SETUPX.61)
James Hathewaycb655b02000-11-06 20:24:43 +000046 */
Alexandre Julliard50683472002-04-02 02:57:50 +000047DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
James Hathewaycb655b02000-11-06 20:24:43 +000048{
Alexandre Julliard50683472002-04-02 02:57:50 +000049 FIXME( "%x %x: stub\n", w1, w2 );
50 return 0;
James Hathewaycb655b02000-11-06 20:24:43 +000051}
Uwe Bonnesd2411762002-10-10 19:23:57 +000052
Patrik Stridvallc72255c2002-10-29 21:31:26 +000053/***********************************************************************
Steven Edwards6518b5c2004-01-05 21:12:21 +000054 * SetupDiGetDeviceInfoListDetailA (SETUPAPI.@)
Patrik Stridvallc72255c2002-10-29 21:31:26 +000055 */
Steven Edwards6518b5c2004-01-05 21:12:21 +000056BOOL WINAPI SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data )
Uwe Bonnesf227cfa2003-10-27 22:05:33 +000057{
58 FIXME("\n");
59 return FALSE;
60}
61
62/***********************************************************************
63 * SetupDiGetDeviceInfoListDetailW (SETUPAPI.@)
64 */
Steven Edwards6518b5c2004-01-05 21:12:21 +000065BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_W devinfo_data )
Uwe Bonnesd2411762002-10-10 19:23:57 +000066{
67 FIXME("\n");
68 return FALSE;
69}
Patrik Stridvallc72255c2002-10-29 21:31:26 +000070
71/***********************************************************************
Patrik Stridvallc72255c2002-10-29 21:31:26 +000072 * (SETUPAPI.@)
73 *
74 * NO WINAPI in description given
75 */
Steven Edwards6518b5c2004-01-05 21:12:21 +000076HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *class, PCSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCSTR machine, PVOID reserved)
Uwe Bonnesf227cfa2003-10-27 22:05:33 +000077{
78 FIXME("filter %s machine %s\n",debugstr_a(filter),debugstr_a(machine));
79 return FALSE;
80}
81
82/***********************************************************************
83 * (SETUPAPI.@)
84 *
85 * NO WINAPI in description given
86 */
Steven Edwards6518b5c2004-01-05 21:12:21 +000087HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCWSTR machine, PVOID reserved)
Uwe Bonnesd2411762002-10-10 19:23:57 +000088{
89 FIXME("\n");
90 return FALSE;
91}
Patrik Stridvallc72255c2002-10-29 21:31:26 +000092
93/***********************************************************************
Patrik Stridvallc72255c2002-10-29 21:31:26 +000094 * CM_Connect_MachineW (SETUPAPI.@)
95 */
Uwe Bonnesd2411762002-10-10 19:23:57 +000096DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine)
97{
98#define CR_SUCCESS 0x00000000
99#define CR_ACCESS_DENIED 0x00000033
100 FIXME("\n");
101 return CR_ACCESS_DENIED;
102}
Patrik Stridvallc72255c2002-10-29 21:31:26 +0000103
104/***********************************************************************
105 * CM_Disconnect_Machine (SETUPAPI.@)
106 */
Uwe Bonnesd2411762002-10-10 19:23:57 +0000107DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
108{
109 FIXME("\n");
110 return CR_SUCCESS;
111
112}
Uwe Bonnes5eb88a02003-04-02 23:19:14 +0000113
114/***********************************************************************
Matthew Davison2e2f6662004-05-07 00:40:44 +0000115 * CM_Get_Device_ID_ListA (SETUPAPI.@)
116 */
117
118DWORD WINAPI CM_Get_Device_ID_ListA(
119 PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
120{
121 FIXME("%p %p %ld %ld\n", pszFilter, Buffer, BufferLen, ulFlags );
122 memset(Buffer,0,2);
123 return CR_SUCCESS;
124}
125
126
127/***********************************************************************
Uwe Bonnes5eb88a02003-04-02 23:19:14 +0000128 * SetupCopyOEMInfA (SETUPAPI.@)
129 */
Steven Edwards6518b5c2004-01-05 21:12:21 +0000130BOOL WINAPI SetupCopyOEMInfA(PCSTR sourceinffile, PCSTR sourcemedialoc,
131 DWORD mediatype, DWORD copystyle, PSTR destinfname,
Uwe Bonnes5eb88a02003-04-02 23:19:14 +0000132 DWORD destnamesize, PDWORD required,
Steven Edwards6518b5c2004-01-05 21:12:21 +0000133 PSTR *destinfnamecomponent)
Uwe Bonnes5eb88a02003-04-02 23:19:14 +0000134{
Hans Leidekker64dcb352005-05-04 09:47:28 +0000135 FIXME("stub: source %s location %s ...\n", debugstr_a(sourceinffile),
136 debugstr_a(sourcemedialoc));
137 return FALSE;
138}
139
140/***********************************************************************
141 * SetupCopyOEMInfW (SETUPAPI.@)
142 */
143BOOL WINAPI SetupCopyOEMInfW(PCWSTR sourceinffile, PCWSTR sourcemedialoc,
144 DWORD mediatype, DWORD copystyle, PWSTR destinfname,
145 DWORD destnamesize, PDWORD required,
146 PWSTR *destinfnamecomponent)
147{
148 FIXME("stub: source %s location %s ...\n", debugstr_w(sourceinffile),
149 debugstr_w(sourcemedialoc));
Uwe Bonnes5eb88a02003-04-02 23:19:14 +0000150 return FALSE;
151}
152
153/***********************************************************************
Aric Stewartbb86eb62004-03-16 19:13:18 +0000154 * SetupInitializeFileLogW(SETUPAPI.@)
155 */
156HANDLE WINAPI SetupInitializeFileLogW(LPWSTR LogFileName, DWORD Flags)
157{
158 FIXME("Stub %s, 0x%lx\n",debugstr_w(LogFileName),Flags);
159 return INVALID_HANDLE_VALUE;
160}
161
162/***********************************************************************
163 * SetupInitializeFileLogA(SETUPAPI.@)
164 */
165HANDLE WINAPI SetupInitializeFileLogA(LPSTR LogFileName, DWORD Flags)
166{
167 FIXME("Stub %s, 0x%lx\n",debugstr_a(LogFileName),Flags);
168 return INVALID_HANDLE_VALUE;
169}
170
171/***********************************************************************
172 * SetupTerminateFileLog(SETUPAPI.@)
173 */
174BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
175{
176 FIXME ("Stub %p\n",FileLogHandle);
177 return TRUE;
178}
Mike McCormack07e9ec42006-04-04 21:04:32 +0900179
180/***********************************************************************
181 * RegistryDelnode(SETUPAPI.@)
182 */
183BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
184{
185 FIXME("%08lx %08lx: stub\n", x, y);
186 return FALSE;
187}