RtlCaptureContext function (ntifs.h)
The RtlCaptureContext function retrieves a context record in the context of the caller.
Syntax
NTSYSAPI VOID RtlCaptureContext(
[out] PCONTEXT ContextRecord
);
Parameters
[out] ContextRecord
A pointer to a CONTEXT structure.
Return value
This function does not return a value.
Remarks
The captured ContextRecord 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
Requirement | Value |
---|---|
Minimum supported client | Windows XP |
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 |