CRegKey::RecurseDeleteKey

LONG RecurseDeleteKey( LPCTSTR lpszKey );

Return Value

If successful, returns ERROR_SUCCESS; otherwise, an error value.

Parameters

lpszKey

[in] Specifies the name of the key to delete. This name must be a subkey of m_hKey.

Remarks

Removes the specified key from the registry and explicitly removes any subkeys. If the key has subkeys, you must call this method under Windows NT in order to delete the key. Under Windows 95, you can call DeleteSubKey to remove the key and any subkeys.

CRegKey OverviewClass Members