| 296 | } |
| 297 | |
| 298 | NTSTATUS 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 | |
| 310 | void ReconstructThreadState(CONTEXT* Context) { |
| 311 | const auto& Config = SignalDelegator->GetConfig(); |
no test coverage detected