_VWIN32_Set_Thread_Context

Copies the register values from the pcontext buffer to the specified thread's current register set. Uses EAX, ECX, EDX, and Flags..

ptcb

Ring 0 thread handle. Indicates the thread to set the context for.

pcontext

Address of a CONTEXT structure that contains the context to be set in the specified thread. The value of the ContextFlags member of this structure specifies which portions of a thread's context to set. Some values in the CONTEXT structure that cannot be specified are silently set to the correct value. This includes bits in the CPU status register that specify the privileged processor mode, global enabling bits in the debugging register, and other states that must be controlled by the operating system.

This function does not validate the context record address.