ICLRDataTarget 介面ICLRDataTarget Interface

提供與 common language runtime (CLR) 的目標專案互動的方法。Provides methods for interaction with a target item of the common language runtime (CLR).

方法Methods

方法Method 描述Description
GetCurrentThreadID 方法GetCurrentThreadID Method 取得目前線程的作業系統識別碼。Gets the operating system identifier for the current thread.
GetImageBase 方法GetImageBase Method 取得指定之影像的基底記憶體位址。Gets the base memory address for the specified image.
GetMachineType 方法GetMachineType Method 取得目標進程正在使用之指令集種類的識別碼。Gets an identifier for the kind of instruction set that the target process is using.
GetPointerSize 方法GetPointerSize Method 取得目前目標指標的大小(以位元組為單位)。Gets the size, in bytes, of a pointer to the current target.
GetThreadContext 方法GetThreadContext Method 取得具有指定識別碼之執行緒內容的指標。Gets a pointer to the context of the thread with the specified identifier.
GetTLSValue 方法GetTLSValue Method 取得執行緒區域儲存區中的值, (TLS) 位於指定之執行緒的指定索引處。Gets a value in thread local storage (TLS) at the specified index for the specified thread.
ReadVirtual 方法ReadVirtual Method 將資料從指定的虛擬記憶體位址讀入指定的緩衝區。Reads data from the specified virtual memory address into the specified buffer.
Request 方法Request Method 由 common language runtime 呼叫 (CLR) 資料存取服務來要求作業,如實作為所定義。Called by the common language runtime (CLR) data access services to request an operation, as defined by the implementation.
SetThreadContext 方法SetThreadContext Method 在目標進程中,設定指定之執行緒的目前內容。Sets the current context of the specified thread in the target process.
SetTLSValue 方法SetTLSValue Method 設定執行緒區域儲存區中的值, (目標進程中指定之執行緒的 TLS) 。Sets a value in the thread local storage (TLS) of the specified thread in the target process.
WriteVirtual 方法WriteVirtual Method 將資料從指定的緩衝區寫入至指定的虛擬記憶體位址。Writes data from the specified buffer to the specified virtual memory address.

備註Remarks

API 用戶端 (也就是偵錯工具) 必須適當地針對特定目標專案執行這個介面。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.

標頭: ClrData .idl、ClrData。hHeader: ClrData.idl, ClrData.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 2.0 起可用Available since 2.0.NET Framework Versions: 自 2.0 起可用Available since 2.0

另請參閱See also