Add trailing '\n's to ok() calls.
[wine] / dlls / shell32 / shellreg.c
1 /*
2  * Shell Registry Access
3  *
4  * Copyright 2000 Juergen Schmied
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 "config.h"
22
23 #include <string.h>
24 #include <stdarg.h>
25 #include <stdio.h>
26
27 #include "windef.h"
28 #include "winbase.h"
29 #include "shellapi.h"
30 #include "wingdi.h"
31 #include "winuser.h"
32 #include "shlobj.h"
33 #include "winerror.h"
34 #include "winreg.h"
35 #include "winnls.h"
36
37 #include "undocshell.h"
38 #include "wine/winbase16.h"
39 #include "shell32_main.h"
40
41 #include "wine/debug.h"
42
43 WINE_DEFAULT_DEBUG_CHANNEL(shell);
44
45 /*************************************************************************
46  * SHRegOpenKeyA                                [SHELL32.506]
47  *
48  */
49 HRESULT WINAPI SHRegOpenKeyA(
50         HKEY hKey,
51         LPSTR lpSubKey,
52         PHKEY phkResult)
53 {
54         TRACE("(%p, %s, %p)\n", hKey, debugstr_a(lpSubKey), phkResult);
55         return RegOpenKeyA(hKey, lpSubKey, phkResult);
56 }
57
58 /*************************************************************************
59  * SHRegOpenKeyW                                [SHELL32.507] NT 4.0
60  *
61  */
62 HRESULT WINAPI SHRegOpenKeyW (
63         HKEY hkey,
64         LPCWSTR lpszSubKey,
65         PHKEY retkey)
66 {
67         WARN("%p %s %p\n",hkey,debugstr_w(lpszSubKey),retkey);
68         return RegOpenKeyW( hkey, lpszSubKey, retkey );
69 }
70
71 /*************************************************************************
72  * SHRegQueryValueExA   [SHELL32.509]
73  *
74  */
75 HRESULT WINAPI SHRegQueryValueExA(
76         HKEY hkey,
77         LPSTR lpValueName,
78         LPDWORD lpReserved,
79         LPDWORD lpType,
80         LPBYTE lpData,
81         LPDWORD lpcbData)
82 {
83         TRACE("%p %s %p %p %p %p\n", hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
84         return RegQueryValueExA (hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
85 }
86
87 /*************************************************************************
88  * SHRegQueryValueW                             [SHELL32.510] NT4.0
89  *
90  */
91 HRESULT WINAPI SHRegQueryValueW(
92         HKEY hkey,
93         LPWSTR lpszSubKey,
94         LPWSTR lpszData,
95         LPDWORD lpcbData )
96 {
97         WARN("%p %s %p %p semi-stub\n",
98                 hkey, debugstr_w(lpszSubKey), lpszData, lpcbData);
99         return RegQueryValueW( hkey, lpszSubKey, lpszData, lpcbData );
100 }
101
102 /*************************************************************************
103  * SHRegQueryValueExW   [SHELL32.511] NT4.0
104  *
105  * FIXME
106  *  if the datatype REG_EXPAND_SZ then expand the string and change
107  *  *pdwType to REG_SZ.
108  */
109 HRESULT WINAPI SHRegQueryValueExW (
110         HKEY hkey,
111         LPWSTR pszValue,
112         LPDWORD pdwReserved,
113         LPDWORD pdwType,
114         LPVOID pvData,
115         LPDWORD pcbData)
116 {
117         DWORD ret;
118         WARN("%p %s %p %p %p %p semi-stub\n",
119                 hkey, debugstr_w(pszValue), pdwReserved, pdwType, pvData, pcbData);
120         ret = RegQueryValueExW ( hkey, pszValue, pdwReserved, pdwType, pvData, pcbData);
121         return ret;
122 }
123
124 /*************************************************************************
125  * SHRegDeleteKeyA   [SHELL32.?]
126  */
127 HRESULT WINAPI SHRegDeleteKeyA(
128         HKEY hkey,
129         LPCSTR pszSubKey)
130 {
131         FIXME("hkey=%p, %s\n", hkey, debugstr_a(pszSubKey));
132         return 0;
133 }
134
135 /*************************************************************************
136  * SHRegDeleteKeyW   [SHELL32.512]
137  */
138 HRESULT WINAPI SHRegDeleteKeyW(
139         HKEY hkey,
140         LPCWSTR pszSubKey)
141 {
142         FIXME("hkey=%p, %s\n", hkey, debugstr_w(pszSubKey));
143         return 0;
144 }
145
146 /*************************************************************************
147  * SHRegCloseKey                        [SHELL32.505] NT 4.0
148  *
149  */
150 HRESULT WINAPI SHRegCloseKey (HKEY hkey)
151 {
152         TRACE("%p\n",hkey);
153         return RegCloseKey( hkey );
154 }