Share via


CDataRecoveryHandler::Initialize

Initializes the CDataRecoveryHandler.

virtual BOOL Initialize();

Return Value

TRUE if the initialization is successful; otherwise FALSE.

Remarks

The initialization process loads the path for storing autosave files from the registry. If the Initialize method cannot find this directory or if the path is NULL, Initialize fails and returns FALSE.

Use CDataRecoveryHandler::SetAutosavePath to change the autosave path after your application initializes the CDataRecoveryHandler.

The Initialize method also starts a timer to monitor when the next autosave occurs. Use CDataRecoveryHandler::SetAutosaveInterval to change the autosave interval after your application initializes the CDataRecoveryHandler.

Requirements

Header: afxdatarecovery.h

See Also

Reference

CDataRecoveryHandler Class

Hierarchy Chart

CDataRecoveryHandler::SetAutosavePath

CDataRecoveryHandler::SetAutosaveInterval