BCGControlBar Pro for MFC
BOOL CBCGPUserToolsManager::SaveState ( LPCTSTR  lpszProfileName = NULL)

Stores the user tool's information to the Windows registry.

Returns
Nonzero if the state was saved successfully; otherwise 0.

The function stores the current CBCGPUserToolsManager object's state into the Windows registry. Usually, you don't need to call this function directly, it's called automatically as a part of the application's workspace serialization process (see CBCGPWorkspace::SaveState for details).

Parameters
lpszProfileNameA path to the Windows registry key.