SECWorkspaceManagerEx::SetRegistryMode

Set the workspace manager to registry mode.

Defined in: SWSMGREX.CPP

Syntax

SetRegistryMode(const CString& strAppSubKey,BOOL bEnable,HKEY hKeyApp, BOOL bSectionKey)

SetRegistryMode(BOOL bEnable, BOOL bSectionKey)

Return Value

void

Parameters

strAppSubKey

Base registry subkey for this application's workspace information.

bEnable

Enable or disable registry mode.

hKeyApp

Root registry key for this app's workspace state information (HKEY_CURRENT_USER,etc.)

bEnable

Subkey is a section key rather than an HKCU subkey

bSectionKey

strAppKey is passed as a parameter to CWinApp::GetSectionKey to obtain the base registry key

Comments

By default, the workspace manager will save persistance information to a file. Use this function to reroute persistance information to the system registry.