Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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( );

hKey

The handle of a registry key.

Attach will assert if m_hKey is non-NULL.

Requirements

Header: atlbase.h

Show: