ICLRDataTarget Interface

Provides methods for interaction with a target item of the common language runtime (CLR).

Methods

Method Description
GetCurrentThreadID Method Gets the operating system identifier for the current thread.
GetImageBase Method Gets the base memory address for the specified image.
GetMachineType Method Gets an identifier for the kind of instruction set that the target process is using.
GetPointerSize Method Gets the size, in bytes, of a pointer to the current target.
GetThreadContext Method Gets a pointer to the context of the thread with the specified identifier.
GetTLSValue Method Gets a value in thread local storage (TLS) at the specified index for the specified thread.
ReadVirtual Method Reads data from the specified virtual memory address into the specified buffer.
Request Method Called by the common language runtime (CLR) data access services to request an operation, as defined by the implementation.
SetThreadContext Method Sets the current context of the specified thread in the target process.
SetTLSValue Method Sets a value in the thread local storage (TLS) of the specified thread in the target process.
WriteVirtual Method Writes data from the specified buffer to the specified virtual memory address.

Remarks

The API client (that is, the debugger) must implement this interface as appropriate for the particular target item. For example, a live process would have an implementation different from that of a memory dump.

Requirements

Platforms: See System Requirements.

Header: ClrData.idl, ClrData.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0

See also