다음을 통해 공유


CRegKey::Attach

Call this method to attach an HKEY to the CRegKey object by setting the m_hKey member handle to hKey.

void Attach(
   HKEY hKey 
) throw( );

Parameters

  • hKey
    The handle of a registry key.

Remarks

Attach will assert if m_hKey is non-NULL.

Requirements

Header: atlbase.h

See Also

Concepts

CRegKey Class

CRegKey Members

CRegKey::Detach