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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for