Implement
[reactos.git] / reactos / lib / 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 /***********************************************************************
73 * SetupDiGetClassDevsExA (SETUPAPI.@)
74 *
75 * NO WINAPI in description given
76 */
77 HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *class, PCSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCSTR machine, PVOID reserved)
78 {
79 FIXME("filter %s machine %s\n",debugstr_a(filter),debugstr_a(machine));
80 return FALSE;
81 }
82
83 /***********************************************************************
84 * SetupDiGetClassDevsExW (SETUPAPI.@)
85 *
86 * NO WINAPI in description given
87 */
88 HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCWSTR machine, PVOID reserved)
89 {
90 FIXME("\n");
91 return FALSE;
92 }
93
94 /***********************************************************************
95 * CM_Connect_MachineW (SETUPAPI.@)
96 */
97 DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine)
98 {
99 #define CR_SUCCESS 0x00000000
100 #define CR_ACCESS_DENIED 0x00000033
101 FIXME("\n");
102 return CR_ACCESS_DENIED;
103 }
104
105 /***********************************************************************
106 * CM_Disconnect_Machine (SETUPAPI.@)
107 */
108 DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
109 {
110 FIXME("\n");
111 return CR_SUCCESS;
112
113 }
114
115 /***********************************************************************
116 * SetupCopyOEMInfA (SETUPAPI.@)
117 */
118 BOOL WINAPI SetupCopyOEMInfA(PCSTR sourceinffile, PCSTR sourcemedialoc,
119 DWORD mediatype, DWORD copystyle, PSTR destinfname,
120 DWORD destnamesize, PDWORD required,
121 PSTR *destinfnamecomponent)
122 {
123 FIXME("stub: source %s location %s ...\n",sourceinffile, sourcemedialoc);
124 return FALSE;
125 }
126
127 /***********************************************************************
128 * SetupGetInfInformationA (SETUPAPI.@)
129 */
130 BOOL WINAPI SetupGetInfInformationA( LPCVOID InfSpec, DWORD SearchControl,
131 PSP_INF_INFORMATION ReturnBuffer,
132 DWORD ReturnBufferSize, PDWORD RequiredSize)
133 {
134 FIXME("(%p, %ld, %p, %ld, %p) Stub!\n",
135 InfSpec, SearchControl, ReturnBuffer, ReturnBufferSize, RequiredSize );
136 return TRUE;
137 }
138
139 /***********************************************************************
140 * SetupInitializeFileLogW(SETUPAPI.@)
141 */
142 HANDLE WINAPI SetupInitializeFileLogW(LPWSTR LogFileName, DWORD Flags)
143 {
144 FIXME("Stub %s, 0x%lx\n",debugstr_w(LogFileName),Flags);
145 return INVALID_HANDLE_VALUE;
146 }
147
148 /***********************************************************************
149 * SetupInitializeFileLogA(SETUPAPI.@)
150 */
151 HANDLE WINAPI SetupInitializeFileLogA(LPSTR LogFileName, DWORD Flags)
152 {
153 FIXME("Stub %s, 0x%lx\n",debugstr_a(LogFileName),Flags);
154 return INVALID_HANDLE_VALUE;
155 }
156
157 /***********************************************************************
158 * SetupTerminateFileLog(SETUPAPI.@)
159 */
160 BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
161 {
162 FIXME ("Stub %p\n",FileLogHandle);
163 return TRUE;
164 }