ApplicationRecoveryInProgress function (winbase.h)

Indicates that the calling application is continuing to recover data.


HRESULT ApplicationRecoveryInProgress(
  [out] PBOOL pbCancelled


[out] pbCancelled

Indicates whether the user has canceled the recovery process. Set by WER if the user clicks the Cancel button.

Return value

This function returns S_OK on success or one of the following error codes.

Return code Description
You can call this function only after Windows Error Reporting has called your recovery callback function.
The pbCancelled cannot be NULL.


The application must call this function within the interval specified when calling the RegisterApplicationRecoveryCallback function. If the application fails to call this function within the specified interval, WER terminates the application. The recovery process can continue as long as this function is being called.

If the user cancels the recovery process, the application should terminate.

To indicate that the recovery process has been completed, call the ApplicationRecoveryFinished function.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See also