RtlCaptureContext function

The RtlCaptureContext function retrieves a context record in the context of the caller.

Syntax

NTSYSAPI VOID RtlCaptureContext(
  PCONTEXT ContextRecord
);

Parameters

ContextRecord

A pointer to a CONTEXT structure.

Return Value

This function does not return a value.

Remarks

The ContextRecord that is captured contains processor-specific register data.

For kernel-mode code, the CONTEXT structure is defined in Ntddk.h. For more information, see the CONTEXT Structure topic in the SDK documentation.

Requirements

   
Windows version Available in Microsoft Windows XP and later versions of all Windows operating systems.
Target Platform Universal
Header ntifs.h (include Fltkernel.h, Ntifs.h)
Library NtosKrnl.lib; OneCoreUAP.lib on Windows 10
DLL NtDll.dll (user mode); NtosKrnl.exe (kernel mode)
IRQL "<= DISPATCH_LEVEL"

See Also

CONTEXT