Bypass hook chain

03/19/2013 08:31 klonke#1
Hi there! I'm not a c or c++ programmer so I'm asking for a little help here. Is there any way to bypass windows hook chain that is registered by other application (it's a directx mmorpg game "Aurora world") or lets say prevent that game from registering a hook chain that prevent game to recieve low-level inputs.
The game register it's hook using user32.dll commands:

SetWindowsHookEx - registers hook chain;
CallNextHookEx - Passes the hook information to the next hook procedure in the current hook chain;
UnhookWindowsHookEx - unregisters hook chain;
03/19/2013 09:15 Schlüsselbein#2
Theres no way to determine or change the position in the hook chane.
03/19/2013 09:16 Mi4uric3#3
If I was you I would start the game under a debugger and make the function "SetWindowsHookEx" always return 1 or 0 (try and error)..
(NULL -> Hooking failed, !NULL -> Handle)
Maybe the game ignores if the hooking failed and continues anyways so you can let the function return "0". If it does not, maybe it accepts an invalid handle like "1".