共用方式為


CDataRecoveryHandler::GetRestartIdentifier

Retrieves the unique restart identifier for the application.

virtual CString GetRestartIdentifier() const;

Return Value

The unique restart identifier.

Remarks

The restart identifier is unique for each execution of the application.

The CDataRecoveryHandler stores information in the registry about the currently open documents. When the restart manager exits an application and restarts it, it supplies the restart identifier to the CDataRecoveryHandler. The CDataRecoveryHandler uses the restart identifier to retrieve the list of previously open documents. This enables the CDataRecoveryHandler to try to find and restore autosaved files.

Requirements

Header: afxdatarecovery.h

See Also

Reference

CDataRecoveryHandler Class

Hierarchy Chart

CDataRecoveryHandler::SetRestartIdentifier