MCPcopy Create free account
hub / github.com/ElyDotDev/windows-kill / send

Method send

windows-kill-library/sender.cpp:30–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls 6

setSignalMethod · 0.80
getTypeMethod · 0.80
findAddressMethod · 0.80
setCtrlRoutineMethod · 0.80
openMethod · 0.80
startRemoteThreadMethod · 0.80

Tested by

no test coverage detected