Freigeben über


IDkmTlsReadWrite.GetTlsValue(DkmThread, Int32) Method

Definition

Retrieves the value in the debuggee thread's thread local storage (TLS) slot for the specified TLS index. Each thread of a process has its own slot for each TLS index.

public:
 System::UInt64 GetTlsValue(Microsoft::VisualStudio::Debugger::DkmThread ^ thread, int tlsIndex);
public ulong GetTlsValue (Microsoft.VisualStudio.Debugger.DkmThread thread, int tlsIndex);
abstract member GetTlsValue : Microsoft.VisualStudio.Debugger.DkmThread * int -> uint64
Public Function GetTlsValue (thread As DkmThread, tlsIndex As Integer) As ULong

Parameters

thread
DkmThread

[In] DkmThread represents a thread running in the target process.

tlsIndex
Int32

[In] The TLS index that was allocated when the target process called the TlsAlloc function.

Returns

[Out] The pointer-sized value which was stored in the thread's TLS slot. If the target thread is 32-bit, the upper 32-bits of this value will be zero.

Applies to