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.

At a Glance

Header file: Atlbase.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

See Also

CRegKey::Close, CRegKey::m_hKey