Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
TRY
Expand Minimize

AfxRegDeleteKey

Deletes the specified registry key.

LONG AFXAPI AfxRegDeleteKey(HKEY hKey, LPCTSTR lpSubKey, CAtlTransactionManager* pTM = NULL);

hKey

A handle to an open registry key.

lpSubKey

The name of the key to be deleted.

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

Community Additions

ADD
Show:
© 2015 Microsoft