Gets the context for the given thread in this process.
HRESULT GetThreadContext( [in] DWORD threadID, [in] ULONG32 contextSize, [in, out, length_is(contextSize), size_is(contextSize)] BYTE context);
The debugger should call this method rather than the Win32 GetThreadContext method, because the thread may actually be in a "hijacked" state, in which its context has been temporarily changed. This method should be used only when a thread is in native code. Use ICorDebugRegisterSet for threads in managed code.
The data returned is a context structure for the current platform. Just as with the Win32 GetThreadContext method, the caller should initialize the context parameter before calling this method.
Platforms: See .NET Framework System Requirements.
Header: CorDebug.idl, CorDebug.h
.NET Framework Versions: 4.6 Preview, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0