Kernel32GetApplicationRecoveryCallback Method
Retrieves a pointer to the callback routine registered for the specified process.
The address returned is in the virtual address space of the process.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true)]
public static HResult GetApplicationRecoveryCallback(
IntPtr hProcess,
out DelegatesApplicationRecoveryCallback refRecoveryCallback,
out IntPtr refParameter,
out uint refPingInterval,
out int refReserved
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true>]
Public Shared Function GetApplicationRecoveryCallback (
hProcess As IntPtr,
<OutAttribute> ByRef refRecoveryCallback As DelegatesApplicationRecoveryCallback,
<OutAttribute> ByRef refParameter As IntPtr,
<OutAttribute> ByRef refPingInterval As UInteger,
<OutAttribute> ByRef refReserved As Integer
) As HResult
Dim hProcess As IntPtr
Dim refRecoveryCallback As DelegatesApplicationRecoveryCallback
Dim refParameter As IntPtr
Dim refPingInterval As UInteger
Dim refReserved As Integer
Dim returnValue As HResult
returnValue = Kernel32.GetApplicationRecoveryCallback(hProcess,
refRecoveryCallback, refParameter,
refPingInterval, refReserved)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true)]
static HResult GetApplicationRecoveryCallback(
IntPtr hProcess,
[OutAttribute] DelegatesApplicationRecoveryCallback^% refRecoveryCallback,
[OutAttribute] IntPtr% refParameter,
[OutAttribute] unsigned int% refPingInterval,
[OutAttribute] int% refReserved
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true)>]
static member GetApplicationRecoveryCallback :
hProcess : IntPtr *
refRecoveryCallback : DelegatesApplicationRecoveryCallback byref *
refParameter : IntPtr byref *
refPingInterval : uint32 byref *
refReserved : int byref -> HResult
No code example is currently available or this language may not be supported.
- hProcess IntPtr
-
A handle to the process. This handle must have the VirtualMemoryRead access right.
- refRecoveryCallback DelegatesApplicationRecoveryCallback
-
A pointer to the recovery callback function. For more information, see ApplicationRecoveryCallback.
- refParameter IntPtr
-
A pointer to the callback parameter.
- refPingInterval UInt32
-
The recovery ping interval, in 100-nanosecond intervals.
- refReserved Int32
-
Reserved for future use.
HResult
This function returns
S_OK on success, or an
HResult error code.