Freigeben über


CWinApp::GetDataRecoveryHandler

Gets the data recovery handler for this instance of the application.

virtual CDataRecoveryHandler *GetDataRecoveryHandler();

Return Value

The data recovery handler for this instance of the application.

Remarks

Each application that uses the restart manager must have one instance of the CDataRecoveryHandler Class. This class is responsible for monitoring open documents and autosaving files. The behavior of the CDataRecoveryHandler depends on the configuration of the restart manager. For more information, see CDataRecoveryHandler Class.

This method returns NULL on operating systems earlier than Windows Vista. The restart manager is not supported on operating systems earlier than Windows Vista.

If the application does not currently have a data recovery handler, this method creates one and returns a pointer to it.

Requirements

Header: afxwin.h

See Also

Reference

CWinApp Class

Hierarchy Chart

CDataRecoveryHandler Class