Hook a program? Possible?
Hello,
I was wondering if this is even possible. To somehow hook into a program, type something into the console (/joingame 43.32.32.32) or something and maximize the program. Basically so you can click a game on a list and join it. Something like old KaliNET.
- Steve
Re: Hook a program? Possible?
Read MSDN and Petzold about kbd input, and you'll do it yourself in 2 minutes, as it's a basic task...
Re: Hook a program? Possible?
are you trying to hook counter strike like game ??
Re: Hook a program? Possible?
All I am getting is HTML kbd stuff. Any more spectific classes or functions I should look at?
- Steve
Re: Hook a program? Possible?
Quote:
Originally Posted by
hypheni
are you trying to hook counter strike like game ??
Yes
- Steve
Re: Hook a program? Possible?
u can only hook APIs , but if hook the DirectX APIs u can probably do what u ask (even more)
take a look at this:
http://www.codeproject.com/KB/system/hooksys.aspx
Re: Hook a program? Possible?
Quote:
Originally Posted by
Cpp_Noob
u can only hook APIs
That is not entirely true. There are several types of hooking and API Hooking is one of them but not the only one. You can successfully hook other applications' functions but this would require dll injection, code interception as well as reverse engineering knowledge which the OP clearly doesn't have, so for him I think a good place to start would be a forum like Game Deception for hooking Counter-strike - like games there are many tutorials over there.