8 #include "debugtools.h"
10 #include "winversion.h"
16 #include "shell32_main.h"
17 #include "wine/undocshell.h"
19 DEFAULT_DEBUG_CHANNEL(shell
);
21 /*************************************************************************
22 * SHRegOpenKeyA [SHELL32.506]
25 HRESULT WINAPI
SHRegOpenKeyA(
30 TRACE("(0x%08x, %s, %p)\n", hKey
, debugstr_a(lpSubKey
), phkResult
);
31 return RegOpenKeyA(hKey
, lpSubKey
, phkResult
);
34 /*************************************************************************
35 * SHRegOpenKeyW [NT4.0:SHELL32.507]
38 HRESULT WINAPI
SHRegOpenKeyW (
43 WARN("0x%04x %s %p\n",hkey
,debugstr_w(lpszSubKey
),retkey
);
44 return RegOpenKeyW( hkey
, lpszSubKey
, retkey
);
47 /*************************************************************************
48 * SHRegQueryValueExA SHQueryValueExA [SHELL32.509][SHLWAPI.@]
51 HRESULT WINAPI
SHRegQueryValueExA(
59 TRACE("0x%04x %s %p %p %p %p\n", hkey
, lpValueName
, lpReserved
, lpType
, lpData
, lpcbData
);
60 return RegQueryValueExA (hkey
, lpValueName
, lpReserved
, lpType
, lpData
, lpcbData
);
63 /*************************************************************************
64 * SHRegQueryValueW [NT4.0:SHELL32.510]
67 HRESULT WINAPI
SHRegQueryValueW(
73 WARN("0x%04x %s %p %p semi-stub\n",
74 hkey
, debugstr_w(lpszSubKey
), lpszData
, lpcbData
);
75 return RegQueryValueW( hkey
, lpszSubKey
, lpszData
, lpcbData
);
78 /*************************************************************************
79 * SHRegQueryValueExW, SHQueryValueExW [NT4.0:SHELL32.511][SHLWAPI.@]
82 * if the datatype REG_EXPAND_SZ then expand the string and change
85 HRESULT WINAPI
SHRegQueryValueExW (
94 WARN("0x%04x %s %p %p %p %p semi-stub\n",
95 hkey
, debugstr_w(pszValue
), pdwReserved
, pdwType
, pvData
, pcbData
);
96 ret
= RegQueryValueExW ( hkey
, pszValue
, pdwReserved
, pdwType
, pvData
, pcbData
);
100 /* SHGetValue: Gets a value from the registry */
102 /*************************************************************************
105 * Gets a value from the registry
107 DWORD WINAPI
SHGetValueA(
118 TRACE("(%s %s)\n", pSubKey
, pValue
);
120 if((res
= RegOpenKeyA(hkey
, pSubKey
, &hSubKey
))) return res
;
121 res
= RegQueryValueExA(hSubKey
, pValue
, 0, pwType
, pvData
, pbData
);
122 RegCloseKey( hSubKey
);
127 /*************************************************************************
130 * Gets a value from the registry
132 DWORD WINAPI
SHGetValueW(
143 TRACE("(%s %s)\n", debugstr_w(pSubKey
), debugstr_w(pValue
));
145 if((res
= RegOpenKeyW(hkey
, pSubKey
, &hSubKey
))) return res
;
146 res
= RegQueryValueExW(hSubKey
, pValue
, 0, pwType
, pvData
, pbData
);
147 RegCloseKey( hSubKey
);
152 /* gets a user-specific registry value. */
154 /*************************************************************************
157 * Gets a user-specific registry value
159 LONG WINAPI
SHRegGetUSValueA(
167 DWORD wDefaultDataSize
)
169 FIXME("(%p),stub!\n", pSubKey
);
170 return ERROR_SUCCESS
; /* return success */
173 /*************************************************************************
176 * Gets a user-specific registry value
178 LONG WINAPI
SHRegGetUSValueW(
186 DWORD wDefaultDataSize
)
188 FIXME("(%p),stub!\n", pSubKey
);
189 return ERROR_SUCCESS
; /* return success */
192 /*************************************************************************
193 * SHRegGetBoolUSValueA
195 BOOL WINAPI
SHRegGetBoolUSValueA(
201 FIXME("%s %s\n", pszSubKey
,pszValue
);
205 /*************************************************************************
206 * SHRegGetBoolUSValueW
208 BOOL WINAPI
SHRegGetBoolUSValueW(
214 FIXME("%s %s\n", debugstr_w(pszSubKey
),debugstr_w(pszValue
));
218 /*************************************************************************
219 * SHRegQueryUSValueA [SHLWAPI]
221 LONG WINAPI
SHRegQueryUSValueA(
222 HKEY
/*HUSKEY*/ hUSKey
,
229 DWORD dwDefaultDataSize
)
231 FIXME("%s stub\n",pszValue
);
235 /*************************************************************************
238 DWORD WINAPI
SHRegGetPathA(
245 FIXME("%s %s\n", pcszSubKey
, pcszValue
);
249 /*************************************************************************
252 DWORD WINAPI
SHRegGetPathW(
259 FIXME("%s %s\n", debugstr_w(pcszSubKey
), debugstr_w(pcszValue
));
262 /*************************************************************************
263 * SHRegDeleteKeyA and SHDeleteKeyA
265 HRESULT WINAPI
SHRegDeleteKeyA(
269 FIXME("hkey=0x%08x, %s\n", hkey
, debugstr_a(pszSubKey
));
273 /*************************************************************************
274 * SHRegDeleteKeyW and SHDeleteKeyA
276 HRESULT WINAPI
SHRegDeleteKeyW(
280 FIXME("hkey=0x%08x, %s\n", hkey
, debugstr_w(pszSubKey
));
284 /*************************************************************************
285 * SHSetValueA [SHLWAPI]
287 DWORD WINAPI
SHSetValueA(
295 FIXME("(%s %s)stub\n",pszSubKey
, pszValue
);
299 /*************************************************************************
300 * SHRegCloseKey [NT4.0:SHELL32.505]
303 HRESULT WINAPI
SHRegCloseKey (HKEY hkey
)
305 TRACE("0x%04x\n",hkey
);
306 return RegCloseKey( hkey
);