RtlWow64SetThreadContext - NtDoc

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

FORCEINLINE
NTSTATUS
NTAPI_INLINE
RtlWow64SetThreadContext(
    _In_ HANDLE ThreadHandle,
    _In_ PWOW64_CONTEXT ThreadContext
    )
{
    return NtSetInformationThread(
        ThreadHandle,
        ThreadWow64Context,
        ThreadContext,
        sizeof(WOW64_CONTEXT)
        );
}

#endif
#endif
#endif

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

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

#endif
#endif
#endif

View code on GitHub

NtDoc

No description available.