Function Reference


Removes a named value from the specified registry key

#include <WinAPIReg.au3>
_WinAPI_RegDeleteValue ( $hKey, $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.
$sValueName The registry value to be removed. If this parameter is empty string, the key's unnamed or default
value is removed.

Return Value

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


_WinAPI_RegCreateKey, _WinAPI_RegOpenKey

See Also

Search RegDeleteValue in MSDN Library.