This topic has not yet been rated - Rate this topic

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.

Header: atlbase.h

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.