Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AfxRegOpenKeyEx

 

Opens the specified registry key.

LONG AFXAPI AfxRegOpenKeyEx(HKEY hKey, LPCTSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, 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.

ulOptions

This parameter is reserved and must be zero.

samDesired

A mask that specifies the desired access rights to the key.

phkResult

A pointer to a variable that receives a handle to the opened 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: