From c58428c4b2648588818383ecfc1be194d5336281 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 9 Aug 2020 18:01:18 +0200 Subject: [PATCH] Add RELEASE_FORGROUND and ACQUIRED_FOREGROUND hooks --- source/hooks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/hooks.cpp b/source/hooks.cpp index 53f00f8..7b21c61 100644 --- a/source/hooks.cpp +++ b/source/hooks.cpp @@ -91,6 +91,10 @@ void CallHookEx(plugin_information_t *pluginInformation, wups_loader_hook_type_t ((void (*)(void)) ((uint32_t *) func_ptr))(); } else if (hook_type == WUPS_LOADER_HOOK_FINI_WUT_STDCPP) { ((void (*)(void)) ((uint32_t *) func_ptr))(); + } else if (hook_type == WUPS_LOADER_HOOK_RELEASE_FOREGROUND) { + ((void (*)(void)) ((uint32_t *) func_ptr))(); + } else if (hook_type == WUPS_LOADER_HOOK_ACQUIRED_FOREGROUND) { + ((void (*)(void)) ((uint32_t *) func_ptr))(); } else { DEBUG_FUNCTION_LINE("######################################"); DEBUG_FUNCTION_LINE("Hook is not implemented %s [%d]", hook_names[hook_type], hook_type);