Function Reference


Removes the specified value from the specified registry key and subkey

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


$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.
$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.


This function requires Windows Vista or later.


_WinAPI_RegCreateKey, _WinAPI_RegOpenKey

See Also

Search RegDeleteKeyValue in MSDN Library.