CRegKey::Attach

This method attaches an HKEY to the CRegKey object by setting the m_hKey member handle to hKey.

Syntax

void Attach( HKEY hKey );

At a Glance

Header file: Atlbase.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CRegKey Overview, CRegKey Methods, CRegKey::Detach