CRegKey::RecurseDeleteKey
Call this method to remove the specified key from the registry and explicitly remove any subkeys.
LONG RecurseDeleteKey(
LPCTSTR lpszKey
) throw( );
- lpszKey
Specifies the name of the key to delete. This name must be a subkey of m_hKey.
If successful, returns ERROR_SUCCESS; otherwise, a non-zero error value defined in WINERROR.H.
If the key has subkeys, you must call this method to delete the key.
Header: atlbase.h