2018-08-23 11:53:23 -04:00
|
|
|
#pragma once
|
|
|
|
|
2019-03-13 11:54:19 -04:00
|
|
|
// texthook/const.h
|
2018-08-23 11:53:23 -04:00
|
|
|
// 8/23/2013 jichi
|
|
|
|
// Branch: ITH/common.h, rev 128
|
|
|
|
|
2019-08-19 16:15:08 -04:00
|
|
|
enum { STRING = 12, MESSAGE_SIZE = 500, PIPE_BUFFER_SIZE = 2000, SHIFT_JIS = 932, MAX_MODULE_SIZE = 120, PATTERN_SIZE = 30, HOOK_NAME_SIZE = 30, FIXED_SPLIT_VALUE = 0x10001 };
|
2019-06-13 03:19:08 -04:00
|
|
|
enum WildcardByte { XX = 0x11 };
|
2018-08-23 11:53:23 -04:00
|
|
|
|
2019-06-02 02:09:17 -04:00
|
|
|
enum HostCommandType { HOST_COMMAND_NEW_HOOK, HOST_COMMAND_REMOVE_HOOK, HOST_COMMAND_FIND_HOOK, HOST_COMMAND_MODIFY_HOOK, HOST_COMMAND_HIJACK_PROCESS, HOST_COMMAND_DETACH };
|
2018-08-23 11:53:23 -04:00
|
|
|
|
2019-06-02 02:09:17 -04:00
|
|
|
enum HostNotificationType { HOST_NOTIFICATION_TEXT, HOST_NOTIFICATION_NEWHOOK, HOST_NOTIFICATION_FOUND_HOOK, HOST_NOTIFICATION_RMVHOOK };
|
2018-08-23 11:53:23 -04:00
|
|
|
|
2019-01-09 22:35:01 -05:00
|
|
|
enum HookParamType : unsigned
|
2018-08-23 11:53:23 -04:00
|
|
|
{
|
|
|
|
USING_STRING = 0x1, // type(data) is char* or wchar_t* and has length
|
|
|
|
USING_UNICODE = 0x2, // type(data) is wchar_t or wchar_t*
|
|
|
|
BIG_ENDIAN = 0x4, // type(data) is char
|
|
|
|
DATA_INDIRECT = 0x8,
|
2019-02-16 22:51:10 -05:00
|
|
|
USING_SPLIT = 0x10, // use ctx2 or not
|
2018-08-23 11:53:23 -04:00
|
|
|
SPLIT_INDIRECT = 0x20,
|
2018-10-11 12:58:30 -04:00
|
|
|
MODULE_OFFSET = 0x40, // address is relative to module
|
2019-01-03 17:52:16 -05:00
|
|
|
FUNCTION_OFFSET = 0x80, // address is relative to function
|
2018-08-23 11:53:23 -04:00
|
|
|
USING_UTF8 = 0x100,
|
2019-08-19 16:15:08 -04:00
|
|
|
NO_CONTEXT = 0x200,
|
|
|
|
HOOK_EMPTY = 0x400,
|
|
|
|
FIXING_SPLIT = 0x800,
|
|
|
|
DIRECT_READ = 0x1000, // /R read code instead of classic /H hook code
|
|
|
|
FULL_STRING = 0x2000,
|
2019-09-30 08:45:01 -04:00
|
|
|
BLOCK_FLOOD = 0x4000, // remove this hook if flooding text causing perf issues
|
2020-01-19 14:23:30 -07:00
|
|
|
HEX_DUMP = 0x8000,
|
|
|
|
HOOK_ENGINE = 0x10000,
|
|
|
|
HOOK_ADDITIONAL = 0x20000,
|
2018-08-23 11:53:23 -04:00
|
|
|
};
|