TRY
Expand Minimize
This topic has not yet been rated - Rate this topic

AfxRegCreateKey

Creates the specified registry key.

LONG AFXAPI AfxRegCreateKey(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 opened or 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.

Header: afxpriv.h

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.