_RegDeleteValue


DWORD _RegDeleteValue(HKEY hKey, LPSTR lpszValue)

Deletes the value for the given registry key and the given value name.

hKey

Handle of a previously opened key or one of the predefined root keys given in Predefined Keys.

lpszValue

Address of a null-terminated string specifying the value name to delete. Can be NULL or an empty string.

Each key can have one value for which the value name is NULL. This is treated as the value for the key itself. This value can be deleted by passing a NULL or a null string for lpszValue parameter.