CWinAppEx::CleanState
This page is specific to:.NET Framework Version:3.54.0
MFC Library Reference
CWinAppEx::CleanState

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

virtual BOOL CleanState(
   LPCTSTR lpszSectionName=NULL 
);
Parameters

[in] lpszSectionName

A string that contains a path of a registry key.

Return Value

Nonzero if the method was successful; otherwise 0.

Remarks

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.

Requirements

Header: afxwinappex.h

See Also

Concepts

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View