Thanks for the replies everyone, after doing a bit more research I have finally solved the access violation error and it functions properly. The problem was with the stack, when the code passes to my function various stuff is pushed onto the stack by the compiler (it pushes more onto the stack...
Thanks for your reply. I will try and clarify some things.
1) SendInput is hooked by overwriting the start of the entry (i.e. from the mov eax, 11F6 line) with a jump instruction. The application doing the hooking isn't related to my code other than it runs on my PC and it's hook interferes...
I am trying to use SendInput while it has been hooked by another application. The hook seems to be made by placing a jump at the start of the entry to SendInput. I have been trying the following code to get around this:
function TForm3.SendInputTunnelUser(cInputs: dword; nInputs: PINPUT...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.