Share via


IJsDebugDataTarget::GetTlsValue Method

For the thread being debugged, retrieves the value in the thread local storage (TLS) slot for the specified TLS index.

Syntax

HRESULT GetTlsValue(  
   DWORD threadId,  
   UINT32 tlsIndex,  
   UINT64 *pValue  
);  

Parameters

threadId
[in] Thread running in the target process to read from.

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

pValue
[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.

Return Value

Remarks

Each thread of a process has its own slot for each TLS index.

Requirements

Header: jscript9diag.h

See also

IJsDebugDataTarget Interface