| 28 | CtrlRoutine Sender::ctrl_break_routine = CtrlRoutine(CTRL_BREAK_EVENT); |
| 29 | |
| 30 | void Sender::send(Signal the_signal) { |
| 31 | RemoteProcess the_remote_process; |
| 32 | the_remote_process.setSignal(&the_signal); |
| 33 | |
| 34 | if (the_signal.getType() == CTRL_C_EVENT) { |
| 35 | ctrl_c_routine.findAddress(); |
| 36 | the_remote_process.setCtrlRoutine(&Sender::ctrl_c_routine); |
| 37 | } |
| 38 | else { |
| 39 | ctrl_break_routine.findAddress(); |
| 40 | the_remote_process.setCtrlRoutine(&Sender::ctrl_break_routine); |
| 41 | } |
| 42 | |
| 43 | the_remote_process.open(); |
| 44 | the_remote_process.startRemoteThread(); |
| 45 | } |
| 46 | |
| 47 | void Sender::warmUp(const string& which) { |
| 48 | string all("ALL"); |
nothing calls this directly
no test coverage detected