Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __declspec(dllexport) LRESULT CALLBACK OnInject(int code,
- WPARAM wparam, LPARAM lparam)
- {
- static bool hooking = true;
- MSG *msg = (MSG*)lparam;
- if (hooking && msg->message == (WM_USER + 432)) {
- HMODULE user32 = GetModuleHandleW(L"USER32");
- BOOL (WINAPI *unhook_windows_hook_ex)(HHOOK) = NULL;
- unhook_windows_hook_ex = get_obfuscated_func(user32,
- "VojeleY`bdgxvM`hhDz",
- 0x7F55F80C9EE3A213ULL);
- if (unhook_windows_hook_ex)
- unhook_windows_hook_ex((HHOOK)msg->lParam);
- hooking = false;
- }
- return CallNextHookEx(0, code, wparam, lparam);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement