Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWinAppEx::CleanState
Collapse the table of content
Expand the table of content

CWinAppEx::CleanState

Removes all the information about the application from the Windows registry.

virtual BOOL CleanState(
   LPCTSTR lpszSectionName=NULL 
);

[in] lpszSectionName

A string that contains a path of a registry key.

Nonzero if the method was successful; otherwise 0.

This method clears application data from a specific section of the registry. You can specify the section to clear by using the parameter lpszSectionName. If lpszSectionName is NULL, this method will use the default registry path stored in the CWinAppEx object. To get the default registry path, use CWinAppEx::GetRegistryBase.

Header: afxwinappex.h

Show:
© 2015 Microsoft