CRegKey::Create

This method creates the specified key if it does not exist as a subkey of hKeyParent. Otherwise, Create opens the key.

At a Glance

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

Syntax

LONG Create( HKEY hKeyParent, LPCTSTR lpszKeyName,
LPTSTR lpszClass = REG_NONE,
DWORD dwOptions = REG_OPTION_NON_VOLATILE,
REGSAM samDesired = KEY_ALL_ACCESS, LPSECURITY_ATTRIBUTES lpSecAttr = NULL,
LPDWORD lpdwDisposition = NULL );

See Also

CRegKey::Open, CRegKey::m_hKey