Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


Deletes a specific registry key and all its subkeys.

LONG DelRegTree( 
   HKEY hParentKey, 
   const CString& strKeyName 
LONG DelRegTree( 
   HKEY hParentKey,
   const CString& strKeyName,
   CAtlTransactionManager* pTM = NULL

Handle to a registry key.


The name of the registry key to be deleted.


Pointer to 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.

Call this function to delete the specified key and its subkeys.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.