Поделиться через


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

См. также

Основные понятия

CRegKey Class

CRegKey Members