Hook CA WindowProc

Posts 19 of 9 · Page 1 of 1
Hook CA WindowProc
I wanted to hook CA's WindowProc function so i can do a few stuff that will control my hack, Can I hook it?
Look for it in Engine.
I don't get why you would want to hook WinMain, since it is only called once at the beginning of the program, likely before your hack is even injected. But it is in Engine if you really want it.
Quote Originally Posted by mmbob View Post
I don't get why you would want to hook WinMain, since it is only called once at the beginning of the program, likely before your hack is even injected. But it is in Engine if you really want it.
hmm OHH... sorry my mistake I want to hook "WindowProc"

I will edit

oh now, The reason I want to hook WindowProc is, as you kno WindowProc handle the Messages. (and some time after Render if there is no message r something like that). I can use this for Hotkeys making stuff less laggy and mouse control a little easier for me.
you can hook anything. I normally would just load in Olly and check the Call Stack, since you should be in the message loop the call before GetMessage or PeekMessage should be winMain, but since CA is packed all I can think of is Possibly hooking get message, checking EBP, before its set to ESP. Then just dumping the area around the address, and look for the spot you want to mess with or whatever you want to do.

EDIT: Oh you want to get keyboard & mouse input, the hooking GetMessageW should be perfect for that. you can read any input message and use it to control ur code.
Quote Originally Posted by why06 View Post
you can hook anything. I normally would just load in Olly and check the Call Stack, since you should be in the message loop the call before GetMessage or PeekMessage should be winMain, but since CA is packed all I can think of is Possibly hooking get message, checking EBP, before its set to ESP. Then just dumping the area around the address, and look for the spot you want to mess with or whatever you want to do.

EDIT: Oh you want to get keyboard & mouse input, the hooking GetMessageW should be perfect for that. you can read any input message and use it to control ur code.
Thanks I spend some time studying Engine first. By the chance that i get it to work I will use DirectInput since it built for game and i want to test my skills.

WOW thanks again
Quote Originally Posted by topblast View Post


Thanks I spend some time studying Engine first. By the chance that i get it to work I will use DirectInput since it built for game and i want to test my skills.

WOW thanks again
Solved/Answered.
/Closed.
renamed the thread for you
Posts 19 of 9 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?