I was wondering whether i could wrap / hook GetCursorPos and SetCursorPos
I know that it can be done, I just don't know how
If someone could help me it'd be great :D
Printable View
I was wondering whether i could wrap / hook GetCursorPos and SetCursorPos
I know that it can be done, I just don't know how
If someone could help me it'd be great :D
There's a description of techniques in "Windows Programming for Experts" by Jeffrey Richter. But if you don't want to buy it (I recommend it though), here's a quick synopsis.
You get the address of the function. At this address you grab the first few bytes and replace them by a jump instruction to your code. Your code then executes. At the end you execute the bytes you took away and jump back to the next address.
so it involves getprocaddress :p
i'm afraid i'm going to need more help than that :P!