IDebugAdvanced::GetThreadContext method

The GetThreadContext method returns the current thread context.

Syntax


HRESULT GetThreadContext(
  [out]  PVOID Context,
  [in]   ULONG ContextSize
);

Parameters

Context [out]

Receives the current thread context. The type of the thread context is the CONTEXT structure for the target's effective processor. The buffer Context must be large enough to hold this structure.

ContextSize [in]

Specifies the size of the buffer Context.

Return value

This method may also return error values. See Return Values for more details.

Return codeDescription
S_OK

The method was successful.

 

Remarks

For more information about the thread context, see Scopes and Symbol Groups.

Note   The CONTEXT structure varies with operating system and platform. Care should be taken when using the CONTEXT structure.

Requirements

Header

Dbgeng.h (include Dbgeng.h or Ntddk.h)

See also

IDebugAdvanced
IDebugAdvanced2
IDebugAdvanced3
GetScope
SetThreadContext

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.