CWinApp::RestartInstance
Visual Studio 2012
Handles an application restart initiated by the restart manager.
virtual BOOL CWinApp::RestartInstance();
When the restart manager restarts an application, the framework calls this method. This method retrieves the data recovery handler and restores the autosaved files. This method calls CDataRecoveryHandler::RestoreAutosavedDocuments to determine whether the user wants to restore the autosaved files.
This method returns FALSE if the CDataRecoveryHandler determines that there were no open documents. If there were no open documents, the application starts ordinarily.