ApplicationRecoveryCallback callback function
Application-defined callback function used to save data and application state information in the event the application encounters an unhandled exception or becomes unresponsive.
Syntax
DWORD WINAPI ApplicationRecoveryCallback(
PVOID pvParameter
);
Parameters
- pvParameter
Context information specified when you called the RegisterApplicationRecoveryCallback function to register for recovery.
Return value
The return value is not used and should be 0.
Remarks
You specify the callback when calling the RegisterApplicationRecoveryCallback function.
The recovery process must call the ApplicationRecoveryInProgress function within the specified ping interval to indicate that recovery is still progressing.
When you complete the recovery process, call the ApplicationRecoveryFinished function.
If an unhandled exception occurs, you should assume an untrustable and unstable state and do just enough to allow recovery. Loading a DLL or creating a thread could potentially cause deadlocks and should be avoided. It should be okay to allocate resource, if available.
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
Winbase.h (include Windows.h) |