Group: Registry - Library: advapi32
Class library providing access to the System Registry
LONG RegDeleteValue(
HKEY hKey,
LPCTSTR lpValueName
);
DECLARE INTEGER RegDeleteValue IN advapi32;
INTEGER hKey,;
STRING lpValueName
hKey [in] Handle to an open key.
lpValueName [in] Pointer to a null-terminated string that names the value to remove.
If the function succeeds, the return value is ERROR_SUCCESS (0).
The key must have been opened with the KEY_SET_VALUE access right.
hKey handle is returned by the RegCreateKeyEx or RegOpenKeyEx 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
If lpValueName parameter is NULL or an empty string, the value set by the RegSetValue function is removed.