CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Posts
    3

    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

  2. #2
    Join Date
    Dec 2008
    Posts
    114

    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...

  3. #3
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: Hook a program? Possible?

    are you trying to hook counter strike like game ??

  4. #4
    Join Date
    Jul 2009
    Posts
    3

    Re: Hook a program? Possible?

    All I am getting is HTML kbd stuff. Any more spectific classes or functions I should look at?

    - Steve

  5. #5
    Join Date
    Jul 2009
    Posts
    3

    Re: Hook a program? Possible?

    Quote Originally Posted by hypheni View Post
    are you trying to hook counter strike like game ??
    Yes

    - Steve

  6. #6
    Join Date
    May 2006
    Location
    beyond the pillars of hercules
    Posts
    295

    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

  7. #7
    Join Date
    Jul 2005
    Posts
    266

    Re: Hook a program? Possible?

    Quote Originally Posted by Cpp_Noob View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured