shlwapi: Forward SHDeleteValueW() to shcore.dll.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f92a0c3567
commit
975b270e69
|
@ -23,7 +23,7 @@
|
|||
@ stdcall SHDeleteEmptyKeyW(long wstr) shlwapi.SHDeleteEmptyKeyW
|
||||
@ stdcall SHDeleteKeyA(long str) shlwapi.SHDeleteKeyA
|
||||
@ stdcall SHDeleteKeyW(long wstr) shlwapi.SHDeleteKeyW
|
||||
@ stdcall SHDeleteValueA(long str str) shlwapi.SHDeleteValueA
|
||||
@ stdcall SHDeleteValueA(long str str) shlwapi.SHDeleteValueA
|
||||
@ stdcall SHDeleteValueW(long wstr wstr) shlwapi.SHDeleteValueW
|
||||
@ stdcall SHEnumKeyExA(long long str ptr) shlwapi.SHEnumKeyExA
|
||||
@ stdcall SHEnumKeyExW(long long wstr ptr) shlwapi.SHEnumKeyExW
|
||||
|
|
|
@ -342,57 +342,6 @@ DWORD WINAPI SHDeleteOrphanKeyW(HKEY hKey, LPCWSTR lpszSubKey)
|
|||
return dwRet;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* SHDeleteValueA [SHLWAPI.@]
|
||||
*
|
||||
* Delete a value from the registry.
|
||||
*
|
||||
* PARAMS
|
||||
* hKey [I] Handle to registry key
|
||||
* lpszSubKey [I] Name of sub key containing value to delete
|
||||
* lpszValue [I] Name of value to delete
|
||||
*
|
||||
* RETURNS
|
||||
* Success: ERROR_SUCCESS. The value is deleted.
|
||||
* Failure: An error code from RegOpenKeyExA() or RegDeleteValueA().
|
||||
*/
|
||||
DWORD WINAPI SHDeleteValueA(HKEY hKey, LPCSTR lpszSubKey, LPCSTR lpszValue)
|
||||
{
|
||||
DWORD dwRet;
|
||||
HKEY hSubKey;
|
||||
|
||||
TRACE("(hkey=%p,%s,%s)\n", hKey, debugstr_a(lpszSubKey), debugstr_a(lpszValue));
|
||||
|
||||
dwRet = RegOpenKeyExA(hKey, lpszSubKey, 0, KEY_SET_VALUE, &hSubKey);
|
||||
if (!dwRet)
|
||||
{
|
||||
dwRet = RegDeleteValueA(hSubKey, lpszValue);
|
||||
RegCloseKey(hSubKey);
|
||||
}
|
||||
return dwRet;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* SHDeleteValueW [SHLWAPI.@]
|
||||
*
|
||||
* See SHDeleteValueA.
|
||||
*/
|
||||
DWORD WINAPI SHDeleteValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue)
|
||||
{
|
||||
DWORD dwRet;
|
||||
HKEY hSubKey;
|
||||
|
||||
TRACE("(hkey=%p,%s,%s)\n", hKey, debugstr_w(lpszSubKey), debugstr_w(lpszValue));
|
||||
|
||||
dwRet = RegOpenKeyExW(hKey, lpszSubKey, 0, KEY_SET_VALUE, &hSubKey);
|
||||
if (!dwRet)
|
||||
{
|
||||
dwRet = RegDeleteValueW(hSubKey, lpszValue);
|
||||
RegCloseKey(hSubKey);
|
||||
}
|
||||
return dwRet;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.205]
|
||||
*
|
||||
|
|
|
@ -694,8 +694,8 @@
|
|||
@ stdcall SHDeleteKeyW(long wstr) shcore.SHDeleteKeyW
|
||||
@ stdcall SHDeleteOrphanKeyA(long str)
|
||||
@ stdcall SHDeleteOrphanKeyW(long wstr)
|
||||
@ stdcall SHDeleteValueA(long str str)
|
||||
@ stdcall SHDeleteValueW(long wstr wstr)
|
||||
@ stdcall -import SHDeleteValueA(long str str)
|
||||
@ stdcall -import SHDeleteValueW(long wstr wstr)
|
||||
@ stdcall SHEnumKeyExA(long long str ptr) shcore.SHEnumKeyExA
|
||||
@ stdcall SHEnumKeyExW(long long wstr ptr) shcore.SHEnumKeyExW
|
||||
@ stdcall SHEnumValueA(long long str ptr ptr ptr ptr) shcore.SHEnumValueA
|
||||
|
|
Loading…
Reference in New Issue