SKDeleteValueW

This function deletes a value in a subkey of a shell key.

Declaration

HRESULT
SKDeleteValueW (
    enum _SHELLKEY nShellKey,
    LPCWSTR pszSubKey,
    LPCWSTR pszValue);

Parameters

The nShellKey argument selects the shell key by a combination of bit flags in the SHELLKEY enumeration.

The pszSubKey argument provides the address of a null-terminated string that names the subkey, or is NULL for the shell key itself.

The pszValue argument provides the address of a null-terminated string that names the value, or is NULL for the default value.

Return Value

The function returns zero for success, else an error code.

Behaviour

The function opens or creates the given subkey of the selected shell key (using SHGetShellKey) and then deletes the given value.

Availability

The SKDeleteValueW function is exported from SHLWAPI as ordinal 518 in version 6.00 and higher.

Though this function dates from 2001, it was still not documented by Microsoft in the MSDN Library at least as late as the CD edition dated January 2004.