ApplicationRecoveryInProgress function

Indicates that the calling application is continuing to recover data.

Syntax


HRESULT WINAPI ApplicationRecoveryInProgress(
  _Out_  PBOOL pbCanceled
);

Parameters

pbCanceled [out]

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 codeDescription
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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

ApplicationRecoveryFinished
RegisterApplicationRecoveryCallback

 

 

Community Additions

ADD
Show:
© 2014 Microsoft