diff --git a/include/const.h b/include/const.h index 2815543..f3cfb8c 100644 --- a/include/const.h +++ b/include/const.h @@ -6,7 +6,7 @@ enum { MESSAGE_SIZE = 500, PIPE_BUFFER_SIZE = 2000, SHIFT_JIS = 932, MAX_MODULE_SIZE = 120, HOOK_NAME_SIZE = 30 }; -enum HostCommandType +enum HostCommandType { HOST_COMMAND = -1, // null type HOST_COMMAND_NEW_HOOK = 0, @@ -16,7 +16,7 @@ enum HostCommandType HOST_COMMAND_DETACH = 4 }; -enum HostNotificationType +enum HostNotificationType { HOST_NOTIFICATION = -1, // null type HOST_NOTIFICATION_TEXT = 0, @@ -24,7 +24,7 @@ enum HostNotificationType HOST_NOTIFICATION_RMVHOOK = 2 }; -enum HookParamType : unsigned long +enum HookParamType : unsigned long { USING_STRING = 0x1, // type(data) is char* or wchar_t* and has length USING_UNICODE = 0x2, // type(data) is wchar_t or wchar_t* diff --git a/include/types.h b/include/types.h index 0c49d63..01adc92 100644 --- a/include/types.h +++ b/include/types.h @@ -42,7 +42,7 @@ private: }; // jichi 3/7/2014: Add guessed comment -struct HookParam +struct HookParam { // jichi 8/24/2013: For special hooks. typedef void(*text_fun_t)(DWORD esp, HookParam *hp, BYTE index, DWORD *data, DWORD *split, DWORD *len); @@ -92,14 +92,14 @@ private: struct InsertHookCmd // From host { - InsertHookCmd(HookParam hp) : hp(hp) {}; + InsertHookCmd(HookParam hp) : hp(hp) {} int command = HOST_COMMAND_NEW_HOOK; HookParam hp; }; struct ConsoleOutputNotif // From hook { - ConsoleOutputNotif(std::string message = "") { strcpy_s(this->message, message.c_str()); }; + ConsoleOutputNotif(std::string message = "") { strcpy_s(this->message, message.c_str()); } int command = HOST_NOTIFICATION_TEXT; char message[MESSAGE_SIZE] = {}; };