DelKey
Deletes a subkey.
BOOL DelKey( LPCSTR lpSubKey )
FALSE if the key does not exist or it fails to remove it.
EX1
void Registry_DelKey_ex1() { Registry myRegAccess(HKEY_CURRENT_USER); string strKey = GetRegKey() + "\\Dialogs\\Set Values"; if( myRegAccess.HasKey(strKey) ) { myRegAccess.DelKey(strKey); out_str("Delete key, done!"); } }
Registry::Registry, Registry::HasKey, GetRegKey
origin.h