다음을 통해 공유


CDataRecoveryHandler::SaveOpenDocumentList

Saves the current list of open documents to the Windows registry.

virtual BOOL SaveOpenDocumentList();

Return Value

TRUE if there are no open documents to save or if they were saved successfully. FALSE if there are documents to save to the registry, but they were not saved because an error occurred.

Remarks

The restart manager calls SaveOpenDocumentList when the application exits unexpectedly or when it exits for an upgrade. When the application restarts, it uses CDataRecoveryHandler::ReadOpenDocumentList to retrieve the list of open documents.

This method saves only the list of open documents. The method CDataRecoveryHandler::AutosaveDocumentInfo is responsible for saving the documents themselves.

Requirements

Header: afxdatarecovery.h

See Also

Reference

CDataRecoveryHandler Class

Hierarchy Chart

CDataRecoveryHandler::ReadOpenDocumentList

CDataRecoveryHandler::AutosaveDocumentInfo