Debugging Tools for Windows

SetThreadContext

The SetThreadContext method sets the current thread context.

HRESULT
  IDebugAdvanced::SetThreadContext(
    IN PVOID  Context,
    IN ULONG  ContextSize
    );

Parameters

Context
Specifies the 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
Specifies the size of the buffer Context.

Return Value

S_OK
The method was successful.

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

Interface Version

SetThreadContext is available in all versions of IDebugAdvanced.

Comments

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

Headers: Defined in dbgeng.h. Include dbgeng.h.

See Also

SetScope, GetThreadContext

Build machine: CAPEBUILD