Function Reference


_WinAPI_RegDeleteKeyValue

Removes the specified value from the specified registry key and subkey

#include <WinAPIReg.au3>
_WinAPI_RegDeleteKeyValue ( $hKey, $sSubKey, $sValueName )

Parameters

$hKey Handle to an open registry key. The key must have been opened with the $KEY_SET_VALUE access right.
This handle is returned by the _WinAPI_RegCreateKey() or _WinAPI_RegOpenKey() function, or it can be
one of the following predefined keys.
$HKEY_CLASSES_ROOT
$HKEY_CURRENT_CONFIG
$HKEY_CURRENT_USER
$HKEY_LOCAL_MACHINE
$HKEY_USERS
$sSubKey The name of the registry key. This key must be a subkey of the key identified by the $hKey parameter.
$sValueName The registry value to be removed from the key.

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero, @extended flag may contain the system error code.

Remarks

This function requires Windows Vista or later.

Related

_WinAPI_RegCreateKey, _WinAPI_RegOpenKey

See Also

Search RegDeleteKeyValue in MSDN Library.