| 42 | } |
| 43 | } |
| 44 | void InjectorComplex::ChangeTarget(std::optional<std::string> targetModuleName) |
| 45 | { |
| 46 | std::lock_guard lk{ mtx_ }; |
| 47 | if (IsActive(false) && targetModuleName_ != targetModuleName) { |
| 48 | pmlog_dbg("Writing new target name to injectors").pmwatch(targetModuleName.value_or(""s)); |
| 49 | targetModuleName_ = targetModuleName; |
| 50 | pInjector32_->ChangeTarget(targetModuleName); |
| 51 | pInjector64_->ChangeTarget(targetModuleName); |
| 52 | } |
| 53 | } |
| 54 | InjectorComplex::InjectorModule_::InjectorModule_(bool is32Bit) |
| 55 | : |
| 56 | pipeOut_{ ioctx_ }, |