Results 1 to 4 of 4

Thread: [VB6] Simple API hook

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2011
    Posts
    2

    [VB6] Simple API hook

    Hello
    Im kinda new to API hooking but i need to do one thing.
    I would like to prevent any other application than my own to hook into specific process (OpenProcess, ReadProcessMemory, WriteProcessMemory and so on). Whats the best way to do this? I hope i explained it clearly enough. Thanks in advance
    Last edited by mastahb; May 24th, 2011 at 05:54 PM.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [VB6] Simple API hook

    What language are you using?
    You may want to further explain/justify why this is needed which may result in more replies
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    629

    Re: [VB6] Simple API hook

    Well if you hook into your own program and neglect any CallNextHookEx calls you could prevent other programs from monitoring your events. One problem is that Windows made it easy to inject dll code into unmanaged code (all hacks etc. are made around this principle), so it is never possible to prevent this from happening.

    Unless there is a way to routinely check if your managed code has been changed (hash compare check?) which I doubt, there is simply no way. Software protectors like Punkbuster, Gameshield, etc. exist for a reason...

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2011
    Posts
    2

    Re: [VB6] Simple API hook

    Im going to use either Visual Basic or Visual C#.
    Software protectors are not good enough for me since i need to gain info about several computers connected via p2p gaming tool. The way to do that is to protect each computer locally and send its status to other computers.
    Last edited by mastahb; May 25th, 2011 at 04:17 PM.

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