IDkmThreadContextOperation.SetContext(DkmThread, Byte[]) Method

Definition

Update the context (register values) of a thread.

public:
 void SetContext(Microsoft::VisualStudio::Debugger::DkmThread ^ thread, cli::array <System::Byte> ^ context);
public void SetContext (Microsoft.VisualStudio.Debugger.DkmThread thread, byte[] context);
abstract member SetContext : Microsoft.VisualStudio.Debugger.DkmThread * byte[] -> unit
Public Sub SetContext (thread As DkmThread, context As Byte())

Parameters

thread
DkmThread

[In] DkmThread represents a thread running in the target process.

context
Byte[]

[In] 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.

Applies to