2016-01-05 23:01:17 +08:00
|
|
|
#pragma once
|
|
|
|
// host_p.h
|
|
|
|
// 8/24/2013 jichi
|
|
|
|
// Branch IHF/main.h, rev 111
|
|
|
|
#include <windows.h>
|
2018-05-12 04:46:05 +08:00
|
|
|
#include <tlhelp32.h>
|
2016-01-05 23:01:17 +08:00
|
|
|
|
|
|
|
#define GLOBAL extern
|
|
|
|
#define SHIFT_JIS 0x3A4
|
|
|
|
class HookManager;
|
|
|
|
//class CommandQueue;
|
|
|
|
class SettingManager;
|
|
|
|
class TextHook;
|
|
|
|
//class BitMap;
|
|
|
|
//class CustomFilterMultiByte;
|
|
|
|
//class CustomFilterUnicode;
|
|
|
|
//#define TextHook Hook
|
|
|
|
GLOBAL BOOL running;
|
|
|
|
//GLOBAL BitMap *pid_map;
|
|
|
|
//GLOBAL CustomFilterMultiByte *mb_filter;
|
|
|
|
//GLOBAL CustomFilterUnicode *uni_filter;
|
|
|
|
GLOBAL HookManager *man;
|
|
|
|
//GLOBAL CommandQueue *cmdq;
|
|
|
|
GLOBAL SettingManager *setman;
|
|
|
|
GLOBAL WCHAR recv_pipe[];
|
|
|
|
GLOBAL WCHAR command[];
|
2018-05-12 04:46:05 +08:00
|
|
|
GLOBAL HANDLE pipeExistsEvent;
|
2016-01-05 23:01:17 +08:00
|
|
|
GLOBAL DWORD split_time,
|
|
|
|
cyclic_remove,
|
|
|
|
clipboard_flag,
|
|
|
|
global_filter;
|
2018-05-12 04:46:05 +08:00
|
|
|
GLOBAL CRITICAL_SECTION detachCs;
|
2016-01-05 23:01:17 +08:00
|
|
|
|
2018-05-21 01:11:55 +08:00
|
|
|
DWORD WINAPI TextReceiver(LPVOID lpThreadParameter);
|
2016-01-05 23:01:17 +08:00
|
|
|
DWORD WINAPI CmdThread(LPVOID lpThreadParameter);
|
|
|
|
|
|
|
|
DWORD GetCurrentPID();
|
|
|
|
//DWORD GetProcessIDByPath(LPWSTR str);
|
2018-06-01 14:36:51 +08:00
|
|
|
HANDLE GetHostPipeByPID(DWORD pid);
|
2016-01-05 23:01:17 +08:00
|
|
|
//DWORD Inject(HANDLE hProc);
|
|
|
|
//DWORD InjectByPID(DWORD pid);
|
|
|
|
//DWORD PIDByName(LPWSTR target);
|
|
|
|
//DWORD Hash(LPCWSTR module, int length=-1);
|
|
|
|
|
|
|
|
// EOF
|