Partager via


CRegKey::RecurseDeleteKey

Call this method to remove the specified key from the registry and explicitly remove any subkeys.

LONG RecurseDeleteKey(
   LPCTSTR lpszKey 
) throw( );

Parameters

  • lpszKey
    Specifies the name of the key to delete. This name must be a subkey of m_hKey.

Return Value

If successful, returns ERROR_SUCCESS; otherwise, a non-zero error value defined in WINERROR.H.

Remarks

If the key has subkeys, you must call this method to delete the key.

Requirements

Header: atlbase.h

See Also

Reference

CRegKey Class

Other Resources

CRegKey Members