8 #include "debugtools.h"
10 #include "winversion.h"
15 #include "shell32_main.h"
16 #include "wine/undocshell.h"
18 DEFAULT_DEBUG_CHANNEL(shell
);
20 /*************************************************************************
21 * SHRegOpenKeyA [SHELL32.506]
24 HRESULT WINAPI
SHRegOpenKeyA(
29 TRACE("(0x%08x, %s, %p)\n", hKey
, debugstr_a(lpSubKey
), phkResult
);
30 return RegOpenKeyA(hKey
, lpSubKey
, phkResult
);
33 /*************************************************************************
34 * SHRegOpenKeyW [NT4.0:SHELL32.507]
37 HRESULT WINAPI
SHRegOpenKeyW (
42 WARN("0x%04x %s %p\n",hkey
,debugstr_w(lpszSubKey
),retkey
);
43 return RegOpenKeyW( hkey
, lpszSubKey
, retkey
);
46 /*************************************************************************
47 * SHRegQueryValueExA SHQueryValueExA [SHELL32.509][SHLWAPI.@]
50 HRESULT WINAPI
SHRegQueryValueExA(
58 TRACE("0x%04x %s %p %p %p %p\n", hkey
, lpValueName
, lpReserved
, lpType
, lpData
, lpcbData
);
59 return RegQueryValueExA (hkey
, lpValueName
, lpReserved
, lpType
, lpData
, lpcbData
);
62 /*************************************************************************
63 * SHRegQueryValueW [NT4.0:SHELL32.510]
66 HRESULT WINAPI
SHRegQueryValueW(
72 WARN("0x%04x %s %p %p semi-stub\n",
73 hkey
, debugstr_w(lpszSubKey
), lpszData
, lpcbData
);
74 return RegQueryValueW( hkey
, lpszSubKey
, lpszData
, lpcbData
);
77 /*************************************************************************
78 * SHRegQueryValueExW, SHQueryValueExW [NT4.0:SHELL32.511][SHLWAPI.@]
81 * if the datatype REG_EXPAND_SZ then expand the string and change
84 HRESULT WINAPI
SHRegQueryValueExW (
93 WARN("0x%04x %s %p %p %p %p semi-stub\n",
94 hkey
, debugstr_w(pszValue
), pdwReserved
, pdwType
, pvData
, pcbData
);
95 ret
= RegQueryValueExW ( hkey
, pszValue
, pdwReserved
, pdwType
, pvData
, pcbData
);
99 /* SHGetValue: Gets a value from the registry */
101 /*************************************************************************
104 * Gets a value from the registry
106 DWORD WINAPI
SHGetValueA(
117 TRACE("(%s %s)\n", pSubKey
, pValue
);
119 if((res
= RegOpenKeyA(hkey
, pSubKey
, &hSubKey
))) return res
;
120 res
= RegQueryValueExA(hSubKey
, pValue
, 0, pwType
, pvData
, pbData
);
121 RegCloseKey( hSubKey
);
126 /*************************************************************************
129 * Gets a value from the registry
131 DWORD WINAPI
SHGetValueW(
142 TRACE("(%s %s)\n", debugstr_w(pSubKey
), debugstr_w(pValue
));
144 if((res
= RegOpenKeyW(hkey
, pSubKey
, &hSubKey
))) return res
;
145 res
= RegQueryValueExW(hSubKey
, pValue
, 0, pwType
, pvData
, pbData
);
146 RegCloseKey( hSubKey
);
151 /* gets a user-specific registry value. */
153 /*************************************************************************
156 * Gets a user-specific registry value
158 LONG WINAPI
SHRegGetUSValueA(
166 DWORD wDefaultDataSize
)
168 FIXME("(%p),stub!\n", pSubKey
);
169 return ERROR_SUCCESS
; /* return success */
172 /*************************************************************************
175 * Gets a user-specific registry value
177 LONG WINAPI
SHRegGetUSValueW(
185 DWORD wDefaultDataSize
)
187 FIXME("(%p),stub!\n", pSubKey
);
188 return ERROR_SUCCESS
; /* return success */
191 /*************************************************************************
192 * SHRegGetBoolUSValueA
194 BOOL WINAPI
SHRegGetBoolUSValueA(
200 FIXME("%s %s\n", pszSubKey
,pszValue
);
204 /*************************************************************************
205 * SHRegGetBoolUSValueW
207 BOOL WINAPI
SHRegGetBoolUSValueW(
213 FIXME("%s %s\n", debugstr_w(pszSubKey
),debugstr_w(pszValue
));
217 /*************************************************************************
218 * SHRegQueryUSValueA [SHLWAPI]
220 LONG WINAPI
SHRegQueryUSValueA(
221 HKEY
/*HUSKEY*/ hUSKey
,
228 DWORD dwDefaultDataSize
)
230 FIXME("%s stub\n",pszValue
);
234 /*************************************************************************
237 DWORD WINAPI
SHRegGetPathA(
244 FIXME("%s %s\n", pcszSubKey
, pcszValue
);
248 /*************************************************************************
251 DWORD WINAPI
SHRegGetPathW(
258 FIXME("%s %s\n", debugstr_w(pcszSubKey
), debugstr_w(pcszValue
));
261 /*************************************************************************
262 * SHRegDeleteKeyA and SHDeleteKeyA
264 HRESULT WINAPI
SHRegDeleteKeyA(
268 FIXME("hkey=0x%08x, %s\n", hkey
, debugstr_a(pszSubKey
));
272 /*************************************************************************
273 * SHRegDeleteKeyW and SHDeleteKeyA
275 HRESULT WINAPI
SHRegDeleteKeyW(
279 FIXME("hkey=0x%08x, %s\n", hkey
, debugstr_w(pszSubKey
));
283 /*************************************************************************
284 * SHSetValueA [SHLWAPI]
286 DWORD WINAPI
SHSetValueA(
294 FIXME("(%s %s)stub\n",pszSubKey
, pszValue
);
298 /*************************************************************************
299 * SHRegCloseKey [NT4.0:SHELL32.505]
302 HRESULT WINAPI
SHRegCloseKey (HKEY hkey
)
304 TRACE("0x%04x\n",hkey
);
305 return RegCloseKey( hkey
);