共用方式為


CCommandLineInfo::m_strRestartIdentifier

The unique restart identifier on the command line.

CString m_strRestartIdentifier;

Remarks

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

If the restart manager exits the application and is configured to restart it, the restart manager executes the application from the command line with the restart identifier as an optional parameter. When the restart manager uses the restart identifier, the application can reopen the previously open documents and recover autosaved files.

Requirements

Header: afxwin.h

See Also

Reference

CCommandLineInfo Class

Hierarchy Chart

CDataRecoveryHandler Class

CDataRecoveryHandler::GetRestartIdentifier

CDataRecoveryHandler::SetRestartIdentifier

Other Resources

CCommandLineInfo Members