Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the context (register values) for a thread.
Syntax
HRESULT SetThreadContext(
[in] DWORD dwThreadID,
[in] ULONG32 contextSize, [in, size_is(contextSize)] const BYTE * pContext);
Parameters
dwThreadID
[in] The operating system-defined thread identifier.
contextSize
[in] The size of the pContext
buffer to be written.
pContext
[in] A pointer to the bytes to be written.
Remarks
The SetThreadContext
method updates the current context for the thread specified by the operating system-defined dwThreadID
argument. The format of the context record is determined by the platform indicated by the ICorDebugDataTarget::GetPlatform method. On Windows, this is a CONTEXT structure.
Requirements
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: Available since 4.6