AfxRegOpenKey
TRY
TOC
Collapse the table of content
Expand the table of content

AfxRegOpenKey

 

Opens the specified registry key.

LONG AFXAPI AfxRegOpenKey(HKEY hKey, LPCTSTR lpSubKey, PHKEY phkResult, CAtlTransactionManager* pTM = NULL);

hKey

A handle to an open registry key.

lpSubKey

The name of a key that this function opens or creates.

phkResult

A pointer to a variable that receives a handle to the created key.

pTM

Pointer to a CAtlTransactionManager object.

If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in Winerror.h.

Requirements

Header: afxpriv.h

Show:
© 2016 Microsoft