RtlCopyContext - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

/**
 * The RtlCopyContext routine copies the specified portions of a context structure.
 *
 * \param Context A pointer to the destination context.
 * \param ContextFlags Flags that specify which portions of the context are copied.
 * \param Source A pointer to the source context.
 * \return NTSTATUS Successful or errant status.
 * \remarks Copies requested context components between caller-owned compatible layouts; it does not get/set a
 * live thread context. Required source/destination flags and chunk capacity must be established before the
 * call. XSTATE and cross-architecture layouts require their corresponding flags and buffer sizes.
 */
NTSYSAPI
NTSTATUS
NTAPI
RtlCopyContext(
    _Inout_ PCONTEXT Context,
    _In_ ULONG ContextFlags,
    _Out_ PCONTEXT Source
    );

#endif

View code on GitHub

NtDoc

No description available.