2 * SHLWAPI registry functions
8 #include "wine/undocshell.h"
9 #include "debugtools.h"
11 DEFAULT_DEBUG_CHANNEL(shell
);
13 /*************************************************************************
14 * SHRegGetUSValueA [SHLWAPI.@]
16 * Gets a user-specific registry value
18 LONG WINAPI
SHRegGetUSValueA(
26 DWORD wDefaultDataSize
)
28 FIXME("(%p),stub!\n", pSubKey
);
29 return ERROR_SUCCESS
; /* return success */
32 /*************************************************************************
33 * SHRegGetUSValueW [SHLWAPI.@]
35 * Gets a user-specific registry value
37 LONG WINAPI
SHRegGetUSValueW(
45 DWORD wDefaultDataSize
)
47 FIXME("(%p),stub!\n", pSubKey
);
48 return ERROR_SUCCESS
; /* return success */
51 /*************************************************************************
52 * SHRegGetBoolUSValueA [SHLWAPI.@]
54 BOOL WINAPI
SHRegGetBoolUSValueA(
60 FIXME("%s %s\n", pszSubKey
,pszValue
);
64 /*************************************************************************
65 * SHRegGetBoolUSValueW [SHLWAPI.@]
67 BOOL WINAPI
SHRegGetBoolUSValueW(
73 FIXME("%s %s\n", debugstr_w(pszSubKey
),debugstr_w(pszValue
));
77 /*************************************************************************
78 * SHRegQueryUSValueA [SHLWAPI]
80 LONG WINAPI
SHRegQueryUSValueA(
81 HKEY
/*HUSKEY*/ hUSKey
,
88 DWORD dwDefaultDataSize
)
90 FIXME("%s stub\n",pszValue
);
94 /*************************************************************************
95 * SHRegGetPathA [SHLWAPI.@]
97 DWORD WINAPI
SHRegGetPathA(
104 FIXME("%s %s\n", pcszSubKey
, pcszValue
);
108 /*************************************************************************
109 * SHRegGetPathW [SHLWAPI.@]
111 DWORD WINAPI
SHRegGetPathW(
118 FIXME("%s %s\n", debugstr_w(pcszSubKey
), debugstr_w(pcszValue
));
122 /*************************************************************************
123 * SHGetValueA [SHLWAPI.@]
125 * Gets a value from the registry
127 DWORD WINAPI
SHGetValueA(
138 TRACE("(%s %s)\n", pSubKey
, pValue
);
140 if((res
= RegOpenKeyA(hkey
, pSubKey
, &hSubKey
))) return res
;
141 res
= RegQueryValueExA(hSubKey
, pValue
, 0, pwType
, pvData
, pbData
);
142 RegCloseKey( hSubKey
);
147 /*************************************************************************
148 * SHGetValueW [SHLWAPI.@]
150 * Gets a value from the registry
152 DWORD WINAPI
SHGetValueW(
163 TRACE("(%s %s)\n", debugstr_w(pSubKey
), debugstr_w(pValue
));
165 if((res
= RegOpenKeyW(hkey
, pSubKey
, &hSubKey
))) return res
;
166 res
= RegQueryValueExW(hSubKey
, pValue
, 0, pwType
, pvData
, pbData
);
167 RegCloseKey( hSubKey
);
172 /*************************************************************************
173 * SHSetValueA [SHLWAPI.@]
175 DWORD WINAPI
SHSetValueA(
183 FIXME("(%s %s)stub\n",pszSubKey
, pszValue
);
187 /*************************************************************************
188 * SHQueryValueExA [SHLWAPI.@]
191 HRESULT WINAPI
SHQueryValueExA(
199 TRACE("0x%04x %s %p %p %p %p\n", hkey
, lpValueName
, lpReserved
, lpType
, lpData
, lpcbData
);
200 return RegQueryValueExA (hkey
, lpValueName
, lpReserved
, lpType
, lpData
, lpcbData
);
204 /*************************************************************************
205 * SHQueryValueExW [SHLWAPI.@]
208 * if the datatype REG_EXPAND_SZ then expand the string and change
209 * *pdwType to REG_SZ.
211 HRESULT WINAPI
SHQueryValueExW (
219 WARN("0x%04x %s %p %p %p %p semi-stub\n",
220 hkey
, debugstr_w(pszValue
), pdwReserved
, pdwType
, pvData
, pcbData
);
221 return RegQueryValueExW ( hkey
, pszValue
, pdwReserved
, pdwType
, pvData
, pcbData
);
224 /*************************************************************************
225 * SHDeleteKeyA [SHLWAPI.@]
227 HRESULT WINAPI
SHDeleteKeyA(
231 FIXME("hkey=0x%08x, %s\n", hkey
, debugstr_a(pszSubKey
));
235 /*************************************************************************
236 * SHDeleteKeyW [SHLWAPI.@]
238 HRESULT WINAPI
SHDeleteKeyW(
242 FIXME("hkey=0x%08x, %s\n", hkey
, debugstr_w(pszSubKey
));