Freigeben über


ICLRDataTarget::GetThreadContext Method

Gets the current execution context for the given thread in the target process. This method is called by the common language runtime data access services.

HRESULT GetThreadContext (
    [in] ULONG32            threadID,
    [in] ULONG32            contextFlags,
    [in] ULONG32            contextSize,
    [out, size_is(contextSize)] 
        BYTE                *context
);

Parameters

  • threadID
    [in] The operating system identifier of a thread in the target process.
  • contextFlags
    [in] Flags that specify which parts of the context to return. The implementation will return at least these parts of the context.
  • contextSize
    [in] The size of the context.
  • context
    [out] Pointer to a buffer in which to place the context.

    The data in the context buffer must be in the format of the Win32 CONTEXT structure. The context specifies processor-specific register data, so the definition of the Win32 CONTEXT structure depends on the processor's architecture. Refer to the WinNT.h header file for the definition of the Win32 CONTEXT structure.

Remarks

This method is implemented by the writer of the debugging application.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: ClrData.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICLRDataTarget Interface