CRegKey::Open

This method opens the specified key and sets m_hKey to the handle of this key. If the lpszKeyName parameter is NULL or points to an empty string, Open opens a new handle of the key identified by hKeyParent, but does not close any previously opened handle.

Syntax

LONG Open( HKEY hKeyParent, LPCTSTR lpszKeyName, REGSAM samDesired = KEY_ALL_ACCESS );

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::Close, CRegKey::m_hKey