GetApplicationRecoveryCallback function (winbase.h)

Retrieves a pointer to the callback routine registered for the specified process. The address returned is in the virtual address space of the process.


HRESULT GetApplicationRecoveryCallback(
  [in]  HANDLE                        hProcess,
  [out] PVOID                         *ppvParameter,
  [out] PDWORD                        pdwPingInterval,
  [out] PDWORD                        pdwFlags


[in] hProcess

A handle to the process. This handle must have the PROCESS_VM_READ access right.

[out] pRecoveryCallback

A pointer to the recovery callback function. For more information, see ApplicationRecoveryCallback.

[out] ppvParameter

A pointer to the callback parameter.

[out] pdwPingInterval

The recovery ping interval, in 100-nanosecond intervals.

[out] pdwFlags

Reserved for future use.

Return value

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

Return code Description
The application did not register for recovery.
One or more parameters are not valid.


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