shlwapi: Added SKDeleteValueW implementation.
This commit is contained in:
parent
0ce727e433
commit
6aa9494245
|
@ -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)
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue