2016-01-06 00:01:17 +09:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// host.h
|
|
|
|
// 8/23/2013 jichi
|
|
|
|
// Branch: ITH/IHF.h, rev 105
|
|
|
|
|
|
|
|
//#include "host/settings.h"
|
|
|
|
#include "config.h"
|
|
|
|
#include "host/hookman.h"
|
2018-07-12 13:59:05 -04:00
|
|
|
#include <string>
|
2016-01-06 00:01:17 +09:00
|
|
|
|
|
|
|
struct Settings;
|
|
|
|
struct HookParam;
|
|
|
|
|
|
|
|
IHFSERVICE void IHFAPI Host_Init();
|
|
|
|
IHFSERVICE void IHFAPI Host_Destroy();
|
|
|
|
|
2018-05-11 16:46:05 -04:00
|
|
|
IHFSERVICE void IHFAPI StartHost();
|
|
|
|
IHFSERVICE bool IHFAPI OpenHost();
|
|
|
|
IHFSERVICE void IHFAPI CloseHost();
|
2018-05-13 15:33:36 -04:00
|
|
|
IHFSERVICE void IHFAPI GetHostHookManager(HookManager **hookman);
|
|
|
|
IHFSERVICE void IHFAPI GetHostSettings(Settings **settings);
|
2016-01-06 00:01:17 +09:00
|
|
|
IHFSERVICE DWORD IHFAPI Host_GetPIDByName(LPCWSTR pwcTarget);
|
2018-05-11 16:46:05 -04:00
|
|
|
IHFSERVICE bool IHFAPI InjectProcessById(DWORD pid, DWORD timeout = 5000);
|
|
|
|
IHFSERVICE bool IHFAPI DetachProcessById(DWORD pid);
|
2016-01-06 00:01:17 +09:00
|
|
|
IHFSERVICE bool IHFAPI Host_HijackProcess(DWORD pid);
|
2018-07-13 11:47:16 -04:00
|
|
|
IHFSERVICE DWORD IHFAPI InsertHook(DWORD pid, const HookParam *hp, std::string name = "");
|
2016-01-06 00:01:17 +09:00
|
|
|
IHFSERVICE DWORD IHFAPI Host_ModifyHook(DWORD pid, HookParam *hp);
|
2018-07-13 11:47:16 -04:00
|
|
|
IHFSERVICE DWORD IHFAPI RemoveHook(DWORD pid, DWORD addr);
|
2016-01-06 00:01:17 +09:00
|
|
|
IHFSERVICE DWORD IHFAPI Host_AddLink(DWORD from, DWORD to);
|
|
|
|
IHFSERVICE DWORD IHFAPI Host_UnLink(DWORD from);
|
|
|
|
IHFSERVICE DWORD IHFAPI Host_UnLinkAll(DWORD from);
|
|
|
|
|
|
|
|
// EOF
|