RtlCaptureContext function

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

Syntax


VOID RtlCaptureContext(
  _Out_ PCONTEXT ContextRecord
);

Parameters

ContextRecord [out]

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

Target platform

Universal

Version

Available in Microsoft Windows XP and later versions of all Windows operating systems.

Header

Ntifs.h (include Fltkernel.h or 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

 

 

Send comments about this topic to Microsoft

Show: