shlwapi: Added SKDeleteValueW implementation.

This commit is contained in:
Piotr Caban 2010-10-12 16:37:18 +02:00 committed by Alexandre Julliard
parent 0ce727e433
commit 6aa9494245
2 changed files with 21 additions and 1 deletions

View File

@ -4640,6 +4640,26 @@ HRESULT WINAPI SKAllocValueW(DWORD flags, LPCWSTR subkey, LPCWSTR value, DWORD *
return HRESULT_FROM_WIN32(ret);
}
/***********************************************************************
* 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)
*/

View File

@ -511,7 +511,7 @@
515 stdcall -noname SHGetViewStatePropertyBag(ptr wstr long ptr ptr)
516 stdcall -noname SKGetValueW(long wstr wstr long long long)
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)
520 stub -noname SHPropertyBag_ReadBSTR
521 stub -noname SHPropertyBag_ReadPOINTL