ApplicationRecoveryInProgress function (winbase.h)

Indicates that the calling application is continuing to recover data.

Syntax

HRESULT ApplicationRecoveryInProgress(
  [out] PBOOL pbCancelled
);

Parameters

[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
E_FAIL
You can call this function only after Windows Error Reporting has called your recovery callback function.
E_INVALIDARG
The pbCancelled cannot be NULL.

Remarks

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.

Requirements

Requirement Value
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

ApplicationRecoveryFinished

RegisterApplicationRecoveryCallback