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


Call this method to remove the specified key from the registry.

LONG DeleteSubKey( 
   LPCTSTR lpszSubKey  
) throw( );

Specifies the name of the key to delete. This name must be a subkey of m_hKey.

If successful, returns ERROR_SUCCESS. If the method fails, the return value is a nonzero error code defined in WINERROR.H.

DeleteSubKey can only delete a key that has no subkeys. If the key has subkeys, call RecurseDeleteKey instead.

Header: atlbase.h

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