Commit | Line | Data |
---|---|---|
df5e5792 FJ |
1 | /* |
2 | * SetupAPI stubs | |
3 | * | |
0799c1a7 AJ |
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 | |
df5e5792 FJ |
19 | */ |
20 | ||
e37c6e18 AJ |
21 | #include <stdarg.h> |
22 | ||
0799c1a7 | 23 | #include "wine/debug.h" |
df5e5792 | 24 | #include "windef.h" |
e37c6e18 AJ |
25 | #include "winbase.h" |
26 | #include "wingdi.h" | |
27 | #include "winuser.h" | |
28 | #include "winnls.h" | |
b2b72628 | 29 | #include "winreg.h" |
cb655b0a JH |
30 | #include "setupapi.h" |
31 | ||
0799c1a7 | 32 | WINE_DEFAULT_DEBUG_CHANNEL(setupapi); |
df5e5792 | 33 | |
c85144b0 | 34 | /*********************************************************************** |
14c96c10 | 35 | * TPWriteProfileString (SETUPX.62) |
c85144b0 | 36 | */ |
5068347b | 37 | BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string ) |
c85144b0 | 38 | { |
5068347b AJ |
39 | FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) ); |
40 | return TRUE; | |
cb655b0a JH |
41 | } |
42 | ||
43 | ||
44 | /*********************************************************************** | |
14c96c10 | 45 | * suErrorToIds (SETUPX.61) |
cb655b0a | 46 | */ |
5068347b | 47 | DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 ) |
cb655b0a | 48 | { |
5068347b AJ |
49 | FIXME( "%x %x: stub\n", w1, w2 ); |
50 | return 0; | |
cb655b0a | 51 | } |
d241176f | 52 | |
c72255c7 PS |
53 | /*********************************************************************** |
54 | * SetupDiOpenClassRegKeyExW (SETUPAPI.@) | |
55 | * | |
56 | * WINAPI in description not given | |
57 | */ | |
6518b5ca | 58 | HKEY WINAPI SetupDiOpenClassRegKeyExW(const GUID* class, REGSAM access, DWORD flags, PCWSTR machine, PVOID reserved) |
d241176f UB |
59 | { |
60 | FIXME("\n"); | |
61 | return INVALID_HANDLE_VALUE; | |
62 | } | |
63 | ||
c72255c7 PS |
64 | /*********************************************************************** |
65 | * SetupDiGetClassDescriptionExW (SETUPAPI.@) | |
66 | */ | |
6518b5ca | 67 | BOOL WINAPI SetupDiGetClassDescriptionExW (const GUID* class, PWSTR desc, DWORD size, PDWORD required, PCWSTR machine, PVOID reserved) |
d241176f UB |
68 | { |
69 | FIXME("\n"); | |
70 | return FALSE; | |
71 | } | |
72 | ||
c72255c7 PS |
73 | /*********************************************************************** |
74 | * SetupDiClassNameFromGuidExW (SETUPAPI.@) | |
75 | */ | |
6518b5ca | 76 | BOOL WINAPI SetupDiClassNameFromGuidExW (const GUID* class, PWSTR desc, DWORD size, PDWORD required, PCWSTR machine, PVOID reserved) |
d241176f UB |
77 | { |
78 | FIXME("\n"); | |
79 | return FALSE; | |
80 | } | |
81 | ||
c72255c7 PS |
82 | /*********************************************************************** |
83 | * SetupDiBuildClassInfoListExW (SETUPAPI.@) | |
84 | */ | |
d241176f UB |
85 | BOOL WINAPI SetupDiBuildClassInfoListExW(DWORD flags, LPGUID list, DWORD size, PDWORD required, LPCWSTR machine, PVOID reserved) |
86 | { | |
87 | FIXME("\n"); | |
88 | return FALSE; | |
89 | } | |
c72255c7 | 90 | |
f227cfaa | 91 | /*********************************************************************** |
6518b5ca | 92 | * SetupDiGetDeviceInfoListDetailA (SETUPAPI.@) |
f227cfaa | 93 | */ |
6518b5ca | 94 | BOOL WINAPI SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data ) |
f227cfaa UB |
95 | { |
96 | FIXME("\n"); | |
97 | return FALSE; | |
98 | } | |
99 | ||
c72255c7 PS |
100 | /*********************************************************************** |
101 | * SetupDiGetDeviceInfoListDetailW (SETUPAPI.@) | |
102 | */ | |
6518b5ca | 103 | BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_W devinfo_data ) |
d241176f UB |
104 | { |
105 | FIXME("\n"); | |
106 | return FALSE; | |
107 | } | |
c72255c7 | 108 | |
f227cfaa UB |
109 | /*********************************************************************** |
110 | * SetupDiCreateDeviceInfoListA (SETUPAPI.@) | |
111 | */ | |
6518b5ca | 112 | HDEVINFO WINAPI SetupDiCreateDeviceInfoList(const GUID *class, HWND parend) |
f227cfaa UB |
113 | { |
114 | FIXME("\n"); | |
115 | return FALSE; | |
116 | } | |
117 | ||
c72255c7 PS |
118 | /*********************************************************************** |
119 | * SetupDiCreateDeviceInfoListExW (SETUPAPI.@) | |
120 | */ | |
6518b5ca | 121 | HDEVINFO WINAPI SetupDiCreateDeviceInfoListExW(const GUID *class, HWND parend , PCWSTR machine, PVOID reserved) |
d241176f UB |
122 | { |
123 | FIXME("\n"); | |
124 | return FALSE; | |
125 | } | |
c72255c7 | 126 | |
f227cfaa UB |
127 | /*********************************************************************** |
128 | * (SETUPAPI.@) | |
129 | * | |
130 | * NO WINAPI in description given | |
131 | */ | |
6518b5ca | 132 | HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *class, PCSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCSTR machine, PVOID reserved) |
f227cfaa UB |
133 | { |
134 | FIXME("filter %s machine %s\n",debugstr_a(filter),debugstr_a(machine)); | |
135 | return FALSE; | |
136 | } | |
137 | ||
c72255c7 PS |
138 | /*********************************************************************** |
139 | * (SETUPAPI.@) | |
140 | * | |
141 | * NO WINAPI in description given | |
142 | */ | |
6518b5ca | 143 | HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCWSTR machine, PVOID reserved) |
d241176f UB |
144 | { |
145 | FIXME("\n"); | |
146 | return FALSE; | |
147 | } | |
c72255c7 PS |
148 | |
149 | /*********************************************************************** | |
150 | * SetupDiClassGuidsFromNameExW (SETUPAPI.@) | |
151 | */ | |
d241176f UB |
152 | BOOL WINAPI SetupDiClassGuidsFromNameExW(LPCWSTR class, LPGUID list, DWORD size, PDWORD required, LPCWSTR machine, PVOID reserved) |
153 | { | |
154 | FIXME("\n"); | |
155 | return FALSE; | |
156 | } | |
c72255c7 PS |
157 | |
158 | /*********************************************************************** | |
159 | * CM_Connect_MachineW (SETUPAPI.@) | |
160 | */ | |
d241176f UB |
161 | DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine) |
162 | { | |
163 | #define CR_SUCCESS 0x00000000 | |
164 | #define CR_ACCESS_DENIED 0x00000033 | |
165 | FIXME("\n"); | |
166 | return CR_ACCESS_DENIED; | |
167 | } | |
c72255c7 PS |
168 | |
169 | /*********************************************************************** | |
170 | * CM_Disconnect_Machine (SETUPAPI.@) | |
171 | */ | |
d241176f UB |
172 | DWORD WINAPI CM_Disconnect_Machine(DWORD handle) |
173 | { | |
174 | FIXME("\n"); | |
175 | return CR_SUCCESS; | |
176 | ||
177 | } | |
5eb88a08 UB |
178 | |
179 | /*********************************************************************** | |
180 | * SetupCopyOEMInfA (SETUPAPI.@) | |
181 | */ | |
6518b5ca SE |
182 | BOOL WINAPI SetupCopyOEMInfA(PCSTR sourceinffile, PCSTR sourcemedialoc, |
183 | DWORD mediatype, DWORD copystyle, PSTR destinfname, | |
5eb88a08 | 184 | DWORD destnamesize, PDWORD required, |
6518b5ca | 185 | PSTR *destinfnamecomponent) |
5eb88a08 UB |
186 | { |
187 |