2018-07-25 01:39:02 +08:00
|
|
|
#include "hostsignaller.h"
|
2018-07-27 13:42:21 +08:00
|
|
|
#include "extensions.h"
|
2018-07-25 01:39:02 +08:00
|
|
|
|
|
|
|
void HostSignaller::Initialize()
|
|
|
|
{
|
2018-07-26 01:46:59 +08:00
|
|
|
Host::RegisterProcessAttachCallback([&](DWORD pid){ emit AddProcess(pid); });
|
|
|
|
Host::RegisterProcessDetachCallback([&](DWORD pid){ emit RemoveProcess(pid); });
|
2018-08-03 12:07:25 +08:00
|
|
|
Host::RegisterThreadCreateCallback([&](TextThread* thread) { emit AddThread(thread); });
|
2018-07-26 01:46:59 +08:00
|
|
|
Host::RegisterThreadRemoveCallback([&](TextThread* thread){ emit RemoveThread(thread); });
|
2018-07-25 01:39:02 +08:00
|
|
|
}
|