winAPI hooking trampoline does not work properly
I’am trying to hook a winAPI function and using a trampoline function but it doesnot work.
can some one spot the problem/
my code is using a patch with a jmp instruction to a trampoline function
the trampoline function have the original bytes of the winAPI function and then a jmp instruction to the original function after the patch.
my problem is that when runining the program i do get the output
“Hooked MessageBoxA called!” that mean the function does hooked but i dont see the msg box