Share via


CRegKey::Detach

Call this method to detach the m_hKey member handle from the CRegKey object and set m_hKey to NULL.

HKEY Detach( ) throw( );

Return Value

The HKEY associated with the CRegKey object.

Requirements

Header: atlbase.h

See Also

Reference

CRegKey Class

CRegKey::Attach