2016-01-05 23:01:17 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// host.h
|
|
|
|
// 8/23/2013 jichi
|
|
|
|
// Branch: ITH/IHF.h, rev 105
|
|
|
|
|
2018-07-19 12:46:52 +08:00
|
|
|
#define DLLEXPORT __declspec(dllexport)
|
2018-07-19 12:09:58 +08:00
|
|
|
#include "hookman.h"
|
2018-07-19 12:46:52 +08:00
|
|
|
#include "vnrhook/include/types.h"
|
2018-07-13 01:59:05 +08:00
|
|
|
#include <string>
|
2016-01-05 23:01:17 +08:00
|
|
|
|
2018-07-18 05:01:56 +08:00
|
|
|
DLLEXPORT void OpenHost();
|
|
|
|
DLLEXPORT bool StartHost();
|
|
|
|
DLLEXPORT void CloseHost();
|
|
|
|
DLLEXPORT void GetHostHookManager(HookManager **hookman);
|
|
|
|
DLLEXPORT bool InjectProcessById(DWORD pid, DWORD timeout = 5000);
|
|
|
|
DLLEXPORT bool DetachProcessById(DWORD pid);
|
2018-07-19 12:09:58 +08:00
|
|
|
DLLEXPORT bool InsertHook(DWORD pid, const HookParam *hp, std::string name = "");
|
|
|
|
DLLEXPORT bool RemoveHook(DWORD pid, DWORD addr);
|
2016-01-05 23:01:17 +08:00
|
|
|
|
|
|
|
// EOF
|