RtlWow64GetThreadContext - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H
/**
 * The RtlWow64GetThreadContext routine retrieves the WOW64 (32-bit) context of the specified thread.
 *
 * \param ThreadHandle A handle to the thread whose context is retrieved.
 * \param ThreadContext A pointer to a WOW64_CONTEXT structure that receives the thread context.
 * \return NTSTATUS Successful or errant status.
 */
#if defined(_WIN64)
#if defined(_PHLIB_)

FORCEINLINE
NTSTATUS
NTAPI_INLINE
RtlWow64GetThreadContext(
    _In_ HANDLE ThreadHandle,
    _Inout_ PWOW64_CONTEXT ThreadContext
    )
{
    return NtQueryInformationThread(
        ThreadHandle,
        ThreadWow64Context,
        ThreadContext,
        sizeof(WOW64_CONTEXT),
        NULL
        );
}

#endif
#endif
#endif

View code on GitHub
#ifndef _NTRTL_H
/**
 * The RtlWow64GetThreadContext routine retrieves the WOW64 (32-bit) context of the specified thread.
 *
 * \param ThreadHandle A handle to the thread whose context is retrieved.
 * \param ThreadContext A pointer to a WOW64_CONTEXT structure that receives the thread context.
 * \return NTSTATUS Successful or errant status.
 */
#if defined(_WIN64)
#if defined(_PHLIB_)
// ...
#else

// rev
NTSYSAPI
NTSTATUS
NTAPI
RtlWow64GetThreadContext(
    _In_ HANDLE ThreadHandle,
    _Inout_ PWOW64_CONTEXT ThreadContext
    );

#endif
#endif
#endif

View code on GitHub

NtDoc

No description available.