Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
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 .NET supported operating systems.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET versions: Available since .NET Framework 4.6