From 758afb9716a9297de231798a52507c8fbc070578 Mon Sep 17 00:00:00 2001 From: Vic P Date: Wed, 8 Nov 2023 10:55:37 +0700 Subject: [PATCH] Initial --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 8876017..18a478f 100644 --- a/main.cpp +++ b/main.cpp @@ -47,24 +47,24 @@ int main() INLHookingManager::instance().hook(MessageBoxA, hkMessageBoxA); INLHookingManager::instance().hook(MessageBoxW, hkMessageBoxW); - MessageBoxA(hwnd, "The first message.", "MessageBoxA", MB_OK); // text is replaced by "INL Hooked" + MessageBoxA(hwnd, "The first message.", "MessageBoxA", MB_OK); // text is replaced by "INL Hooked" MessageBoxW(hwnd, L"The first message.", L"MessageBoxW", MB_OK); // text is replaced by "INL Hooked" INLHookingManager::instance().unhook(MessageBoxA); INLHookingManager::instance().unhook(MessageBoxW); - MessageBoxA(hwnd, "The second message.", "MessageBoxA", MB_OK); + MessageBoxA(hwnd, "The second message.", "MessageBoxA", MB_OK); MessageBoxW(hwnd, L"The second message.", L"MessageBoxW", MB_OK); // IAT Hooking IATHookingManager::instance().hook(Entry_MessageBoxA, iat_hkMessageBoxA); IATHookingManager::instance().hook(Entry_MessageBoxW, iat_hkMessageBoxW); - MessageBoxA(hwnd, "The first message.", "MessageBoxA", MB_OK); // text is replaced by "IAT Hooked" + MessageBoxA(hwnd, "The first message.", "MessageBoxA", MB_OK); // text is replaced by "IAT Hooked" MessageBoxW(hwnd, L"The first message.", L"MessageBoxW", MB_OK); // text is replaced by "IAT Hooked" IATHookingManager::instance().unhook(Entry_MessageBoxA); IATHookingManager::instance().unhook(Entry_MessageBoxW); - MessageBoxA(hwnd, "The second message.", "MessageBoxA", MB_OK); + MessageBoxA(hwnd, "The second message.", "MessageBoxA", MB_OK); MessageBoxW(hwnd, L"The second message.", L"MessageBoxW", MB_OK); return 0;