DelValue
Removes a named value from the specified registry key.
BOOL DelValue( LPCSTR lpSubKey, LPCSTR lpValueName = NULL )
EX1
void Registry_DelValue_ex1() { Registry myRegAccess(HKEY_CURRENT_USER); string strKey = GetRegKey() + "\\Dialogs\\Set Values"; string strValue = "AutoUpdate"; string strVal; if( myRegAccess.GetValue(strKey, strValue, strVal) ) // if the value is existed { if( myRegAccess.DelValue(strKey, strValue) ) out_str("Value deleted!"); } }
Registry::Registry, Registry::GetValue, GetRegKey
origin.h