source: trunk/src/shlwapi/reg_odin.cpp@ 10367

Last change on this file since 10367 was 7820, checked in by sandervl, 24 years ago

Wine resync

File size: 9.1 KB
Line 
1/* $Id: reg_odin.cpp,v 1.3 2002-02-06 20:18:28 sandervl Exp $ */
2
3/*
4 * Win32 URL-handling APIs for OS/2
5 *
6 * Copyright 1999 Patrick Haller <phaller@gmx.net>
7 *
8 * Project Odin Software License can be found in LICENSE.TXT
9 *
10 * Copyright 1996,1998 Marcus Meissner
11 * Copyright 1996 Jukka Iivonen
12 * Copyright 1997 Uwe Bonnes
13 * Copyright 1999 Jens Wiessner
14 */
15
16
17#include <odin.h>
18#include <odinwrap.h>
19#include <os2sel.h>
20
21#include <string.h>
22#include <ctype.h>
23#include <wctype.h>
24#define HAVE_WCTYPE_H
25
26#include "debugtools.h"
27#include "winnls.h"
28#include "winversion.h"
29#include "winuser.h"
30#include "winreg.h"
31#include "wingdi.h"
32
33#include <heapstring.h>
34#include <misc.h>
35#include <win\winerror.h>
36#include "shlwapi_odin.h"
37#define NO_SHLWAPI_STREAM
38#include <shlwapi.h>
39
40
41ODINDEBUGCHANNEL(SHLWAPI-REG)
42
43
44/*****************************************************************************
45 * Name : DWORD SHRegCreateUSKeyA
46 * Purpose :
47 * Parameters:
48 * Variables :
49 * Result :
50 * Remark : SHLWAPI.594 SHLWAPI.SHRegCreateUSKeyA
51 * Status : STUB UNTESTED
52 *
53 * Author : Patrick Haller [Wed, 1999/12/29 23:02]
54 *****************************************************************************/
55
56ODINFUNCTION5(LONG, SHRegCreateUSKeyA,
57 LPCSTR, lpszKeyName,
58 REGSAM, AccessType,
59 HUSKEY, hRelativeUSKey,
60 PHUSKEY, phNewUSKey,
61 DWORD, dwFlags)
62{
63 dprintf(("not implemented\n"));
64 return 0;
65}
66
67
68/*****************************************************************************
69 * Name : DWORD SHRegCreateUSKeyW
70 * Purpose :
71 * Parameters:
72 * Variables :
73 * Result :
74 * Remark : SHLWAPI.595 SHLWAPI.SHRegCreateUSKeyW
75 * Status : STUB UNTESTED
76 *
77 * Author : Patrick Haller [Wed, 1999/12/29 23:02]
78 *****************************************************************************/
79
80ODINFUNCTION5(LONG, SHRegCreateUSKeyW,
81 LPCWSTR, lpszKeyName,
82 REGSAM, AccessType,
83 HUSKEY, hRelativeUSKey,
84 PHUSKEY, phNewUSKey,
85 DWORD, dwFlags)
86{
87 char szBuffer[256];
88
89 // convert unicode to ascii
90 if (0 == WideCharToMultiByte(0,
91 0,
92 lpszKeyName,
93 -1,
94 szBuffer,
95 sizeof(szBuffer),
96 0,
97 0))
98 return GetLastError();
99
100 return SHRegCreateUSKeyA(szBuffer,
101 AccessType,
102 hRelativeUSKey,
103 phNewUSKey,
104 dwFlags);
105}
106
107
108
109/*
110 shlwapi functions that have found their way in because most of
111 shlwapi is unimplemented and doesn't have a home.
112
113 FIXME: move to a more appropriate file( when one exists )
114*/
115
116
117/* gets a user-specific registry value. */
118
119
120
121/*****************************************************************************
122 * Name : DWORD SHRegSetUSValueA
123 * Purpose :
124 * Parameters:
125 * Variables :
126 * Result :
127 * Remark : SHLWAPI.SHRegSetUSValueA SHLWAPI.615
128 * Status : STUB UNTESTED
129 *
130 * Author : Patrick Haller [Wed, 1999/12/29 23:02]
131 *****************************************************************************/
132
133ODINFUNCTION6(LONG, SHRegSetUSValueA,
134 LPCSTR, lpszSubKeyName,
135 LPCSTR, lpszValueName,
136 DWORD, dwValueType,
137 LPVOID, lpValue,
138 DWORD, dwValueSize,
139 DWORD, dwFlags)
140{
141 dprintf(("not yet implemented"));
142
143 LONG rc = 0;
144 return rc;
145}
146
147
148
149
150/*****************************************************************************
151 * Name : DWORD SHRegSetUSValueW
152 * Purpose :
153 * Parameters:
154 * Variables :
155 * Result :
156 * Remark : SHLWAPI.SHRegSetUSValueW SHLWAPI.616
157 * Status : STUB UNTESTED
158 *
159 * Author : Patrick Haller [Wed, 1999/12/29 23:02]
160 *****************************************************************************/
161
162ODINFUNCTION6(LONG, SHRegSetUSValueW,
163 LPCWSTR, lpszSubKeyName,
164 LPCWSTR, lpszValueName,
165 DWORD, dwValueType,
166 LPVOID, lpValue,
167 DWORD, dwValueSize,
168 DWORD, dwFlags)
169{
170 dprintf(("not yet implemented"));
171
172 LONG rc = 0;
173 return rc;
174}
175
176
177
178/*****************************************************************************
179 * Name : LONG SHRegDeleteUSValueA
180 * Purpose :
181 * Parameters:
182 * Variables :
183 * Result :
184 * Remark :
185 * Status : STUB UNTESTED
186 *
187 * Author : Patrick Haller [2001-08-30]
188 *****************************************************************************/
189
190ODINFUNCTION3(LONG, SHRegDeleteUSValueA,
191 HUSKEY, hUSKey,
192 LPCSTR, lpValue,
193 SHREGDEL_FLAGS, dwFlags)
194{
195 dprintf(("not implemented\n"));
196
197 LONG rc = RegDeleteValueA(hUSKey,
198 (LPSTR)lpValue);
199 return rc;
200}
201
202
203/*****************************************************************************
204 * Name : LONG SHRegDeleteUSValueW
205 * Purpose :
206 * Parameters:
207 * Variables :
208 * Result :
209 * Remark :
210 * Status : STUB UNTESTED
211 *
212 * Author : Patrick Haller [2001-08-30]
213 *****************************************************************************/
214
215ODINFUNCTION3(LONG, SHRegDeleteUSValueW,
216 HUSKEY, hKey,
217 LPCWSTR, lpValue,
218 SHREGDEL_FLAGS, dwFlags)
219{
220 dprintf(("not implemented\n"));
221
222 LONG rc = RegDeleteValueW(hKey,
223 (LPWSTR)lpValue);
224 return rc;
225}
226
227
228
229/*****************************************************************************
230 * Name : LONG SHRegDeleteEmptyUSKeyA
231 * Purpose :
232 * Parameters:
233 * Variables :
234 * Result :
235 * Remark :
236 * Status : STUB UNTESTED
237 *
238 * Author : Patrick Haller [2001-08-30]
239 *****************************************************************************/
240
241ODINFUNCTION3(LONG, SHRegDeleteEmptyUSKeyA,
242 HUSKEY, hUSKey,
243 LPCSTR, lpszSubkey,
244 SHREGDEL_FLAGS, dwFlags)
245{
246 dprintf(("not yet implemented"));
247 return 0;
248}
249
250
251/*****************************************************************************
252 * Name : LONG SHRegDeleteEmptyUSKeyW
253 * Purpose :
254 * Parameters:
255 * Variables :
256 * Result :
257 * Remark :
258 * Status : STUB UNTESTED
259 *
260 * Author : Patrick Haller [2001-08-30]
261 *****************************************************************************/
262
263ODINFUNCTION3(LONG, SHRegDeleteEmptyUSKeyW,
264 HUSKEY, hUSKey,
265 LPCWSTR, lpszSubkey,
266 SHREGDEL_FLAGS, dwFlags)
267{
268 dprintf(("not yet implemented"));
269 return 0;
270}
271
272
273/*****************************************************************************
274 * Name : LONG SHRegDeleteUSKeyA
275 * Purpose :
276 * Parameters:
277 * Variables :
278 * Result :
279 * Remark :
280 * Status : STUB UNTESTED
281 *
282 * Author : Patrick Haller [2001-08-30]
283 *****************************************************************************/
284
285ODINFUNCTION3(LONG, SHRegDeleteUSKeyA,
286 HUSKEY, hUSKey,
287 LPSTR, lpszSubkey,
288 DWORD, dwFlags)
289{
290 dprintf(("not yet implemented"));
291 return 0;
292}
293
294
295/*****************************************************************************
296 * Name : LONG SHRegDeleteUSKeyW
297 * Purpose :
298 * Parameters:
299 * Variables :
300 * Result :
301 * Remark :
302 * Status : STUB UNTESTED
303 *
304 * Author : Patrick Haller [2001-08-30]
305 *****************************************************************************/
306
307ODINFUNCTION3(LONG, SHRegDeleteUSKeyW,
308 HUSKEY, hUSKey,
309 LPWSTR, lpszSubkey,
310 DWORD, dwFlags)
311{
312 dprintf(("not yet implemented"));
313 return 0;
314}
315
316
317
318
319/*****************************************************************************
320 * Name : LONG SHRegEnumUSValueA
321 * Purpose :
322 * Parameters:
323 * Variables :
324 * Result :
325 * Remark :
326 * Status : STUB UNTESTED
327 *
328 * Author : Patrick Haller [2001-08-30]
329 *****************************************************************************/
330
331ODINFUNCTION8(LONG, SHRegEnumUSValueA,
332 HUSKEY, hUSKey,
333 DWORD, dwIndex,
334 LPSTR, lpszValueName,
335 LPDWORD, lpdwValueNameSize,
336 LPDWORD, lpdwValueType,
337 LPVOID, lpValue,
338 LPDWORD, lpdwValueSize,
339 SHREGENUM_FLAGS, dwFlags)
340{
341 dprintf(("not yet implemented"));
342 return 0;
343}
344
345
346/*****************************************************************************
347 * Name : LONG SHRegEnumUSValueW
348 * Purpose :
349 * Parameters:
350 * Variables :
351 * Result :
352 * Remark :
353 * Status : STUB UNTESTED
354 *
355 * Author : Patrick Haller [2001-08-30]
356 *****************************************************************************/
357
358ODINFUNCTION8(LONG, SHRegEnumUSValueW,
359 HUSKEY, hUSKey,
360 DWORD, dwIndex,
361 LPWSTR, lpszValueName,
362 LPDWORD, lpdwValueNameSize,
363 LPDWORD, lpdwValueType,
364 LPVOID, lpValue,
365 LPDWORD, lpdwValueSize,
366 SHREGENUM_FLAGS, dwFlags)
367{
368 dprintf(("not yet implemented"));
369 return 0;
370}
371
372
373
Note: See TracBrowser for help on using the repository browser.