次の方法で共有


DkmThread.GetContext Method

Definition

Overloads

GetContext(Int32, Byte[])

Obtain the current context (register values) of a thread.

GetContext(Int32, Void*, Int32)

Obtain the current context (register values) of a thread.

GetContext(Int32, Byte[])

Obtain the current context (register values) of a thread.

public:
 void GetContext(int ContextFlags, cli::array <System::Byte> ^ Context);
public:
 void GetContext(int ContextFlags, Platform::Array <byte> ^ Context);
void GetContext(int ContextFlags, std::Array <byte> const & Context);
public void GetContext (int ContextFlags, byte[] Context);
member this.GetContext : int * byte[] -> unit
Public Sub GetContext (ContextFlags As Integer, Context As Byte())

Parameters

ContextFlags
Int32

[In] Win32 flags indicating which portion of the CONTEXT object to obtain (ex: CONTEXT_FULL, CONTEXT_CONTROL, CONTEXT_INTEGER).

Context
Byte[]

[In,Out] A Win32 CONTEXT structure that contains the context of the specified thread. The value of the ContextFlags member of this structure specifies which portions of a thread's context to obtained.

Applies to

GetContext(Int32, Void*, Int32)

Obtain the current context (register values) of a thread.

public:
 void GetContext(int ContextFlags, void* Context, int ContextSize);
void GetContext(int ContextFlags, void* Context, int ContextSize);
public void GetContext (int ContextFlags, void* Context, int ContextSize);
member this.GetContext : int * nativeptr<unit> * int -> unit

Parameters

ContextFlags
Int32

[In] Win32 flags indicating which portion of the CONTEXT object to obtain (ex: CONTEXT_FULL, CONTEXT_CONTROL, CONTEXT_INTEGER).

Context
Void*

[In,Out] A Win32 CONTEXT structure that contains the context of the specified thread. The value of the ContextFlags member of this structure specifies which portions of a thread's context to obtained.

ContextSize
Int32

[In] Size of the context structure to read in bytes. This must exactly match the size required to read the context.

Applies to