หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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