Commit 6aa94942 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

shlwapi: Added SKDeleteValueW implementation.

parent 0ce727e4
...@@ -4641,6 +4641,26 @@ HRESULT WINAPI SKAllocValueW(DWORD flags, LPCWSTR subkey, LPCWSTR value, DWORD * ...@@ -4641,6 +4641,26 @@ HRESULT WINAPI SKAllocValueW(DWORD flags, LPCWSTR subkey, LPCWSTR value, DWORD *
} }
/*********************************************************************** /***********************************************************************
* SKDeleteValueW (SHLWAPI.518)
*/
HRESULT WINAPI SKDeleteValueW(DWORD flags, LPCWSTR subkey, LPCWSTR value)
{
DWORD ret;
HKEY hkey;
TRACE("(0x%x, %s %s)\n", flags, debugstr_w(subkey), debugstr_w(value));
hkey = SHGetShellKey(flags, subkey, FALSE);
if (!hkey)
return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
ret = RegDeleteValueW(hkey, value);
RegCloseKey(hkey);
return HRESULT_FROM_WIN32(ret);
}
/***********************************************************************
* SKGetValueW (SHLWAPI.516) * SKGetValueW (SHLWAPI.516)
*/ */
HRESULT WINAPI SKGetValueW(DWORD flags, LPCWSTR subkey, LPCWSTR value, DWORD *type, HRESULT WINAPI SKGetValueW(DWORD flags, LPCWSTR subkey, LPCWSTR value, DWORD *type,
......
...@@ -511,7 +511,7 @@ ...@@ -511,7 +511,7 @@
515 stdcall -noname SHGetViewStatePropertyBag(ptr wstr long ptr ptr) 515 stdcall -noname SHGetViewStatePropertyBag(ptr wstr long ptr ptr)
516 stdcall -noname SKGetValueW(long wstr wstr long long long) 516 stdcall -noname SKGetValueW(long wstr wstr long long long)
517 stub -noname SKSetValueW 517 stub -noname SKSetValueW
518 stub -noname SKDeleteValueW 518 stdcall -noname SKDeleteValueW(long wstr wstr)
519 stdcall -noname SKAllocValueW(long wstr wstr ptr ptr ptr) 519 stdcall -noname SKAllocValueW(long wstr wstr ptr ptr ptr)
520 stub -noname SHPropertyBag_ReadBSTR 520 stub -noname SHPropertyBag_ReadBSTR
521 stub -noname SHPropertyBag_ReadPOINTL 521 stub -noname SHPropertyBag_ReadPOINTL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment