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

Function FlushThreadStateContext

Source/Windows/WOW64/Module.cpp:298–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298NTSTATUS FlushThreadStateContext(HANDLE Thread) {
299 const auto [Err, TLS] = GetThreadTLS(Thread);
300 if (Err) {
301 return Err;
302 }
303
304 WOW64_CONTEXT TmpWowContext {.ContextFlags = WOW64_CONTEXT_FULL | WOW64_CONTEXT_EXTENDED_REGISTERS};
305
306 Context::StoreWowContextFromState(TLS.ThreadState(), &TmpWowContext);
307 return RtlWow64SetThreadContext(Thread, &TmpWowContext);
308}
309
310void ReconstructThreadState(CONTEXT* Context) {
311 const auto& Config = SignalDelegator->GetConfig();

Callers 3

BTCpuGetContextFunction · 0.85
BTCpuSetContextFunction · 0.85
BTCpuSuspendLocalThreadFunction · 0.85

Calls 2

GetThreadTLSFunction · 0.85
StoreWowContextFromStateFunction · 0.85

Tested by

no test coverage detected