MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / GetThreadTLS

Function GetThreadTLS

Source/Windows/WOW64/Module.cpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134decltype(__wine_unix_call_dispatcher) WineUnixCall;
135
136std::pair<NTSTATUS, TLS> GetThreadTLS(HANDLE Thread) {
137 THREAD_BASIC_INFORMATION Info;
138 const NTSTATUS Err = NtQueryInformationThread(Thread, ThreadBasicInformation, &Info, sizeof(Info), nullptr);
139 return {Err, TLS {reinterpret_cast<_TEB*>(Info.TebBaseAddress)}};
140}
141
142TLS GetTLS() {
143 return TLS {NtCurrentTeb()};

Callers 5

FlushThreadStateContextFunction · 0.85
BTCpuThreadTermFunction · 0.85
BTCpuGetContextFunction · 0.85
BTCpuSetContextFunction · 0.85
BTCpuSuspendLocalThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected