Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Monitor 3rd party app (hooking/subclassing)

Monitor 3rd party app (hooking/subclassing)

Scheduled Pinned Locked Moved Visual Basic
csharpalgorithmsquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Derckie2
    wrote on last edited by
    #1

    Hello all, I am searching on the net for 2 days and I am reading a lot about Hooking and Injecting your own dll's into another process, but I don't get clear what technique is usefull for me. Let me explain what I want to accomplish. I want to monitor a 3rd party application what actions a user takes, like he opened an options window and on the close button click I want to get the values he entered. Or he opened a process that takes a while (like processing a document). I looked into some things, but can get a clear view on this.. Can someone helps me out? Many thanks in advance, Derck (P.S. I don't find many vb.net samples on hooking or subclassing :()

    R T 2 Replies Last reply
    0
    • D Derckie2

      Hello all, I am searching on the net for 2 days and I am reading a lot about Hooking and Injecting your own dll's into another process, but I don't get clear what technique is usefull for me. Let me explain what I want to accomplish. I want to monitor a 3rd party application what actions a user takes, like he opened an options window and on the close button click I want to get the values he entered. Or he opened a process that takes a while (like processing a document). I looked into some things, but can get a clear view on this.. Can someone helps me out? Many thanks in advance, Derck (P.S. I don't find many vb.net samples on hooking or subclassing :()

      R Offline
      R Offline
      rudy net
      wrote on last edited by
      #2

      Go to http://msdn.microsoft.com/msdnmag/default.aspx[^] and do a search for "Hooks". You will find some very interesting articles written by Dino Esposito.

      D 1 Reply Last reply
      0
      • R rudy net

        Go to http://msdn.microsoft.com/msdnmag/default.aspx[^] and do a search for "Hooks". You will find some very interesting articles written by Dino Esposito.

        D Offline
        D Offline
        Derckie2
        wrote on last edited by
        #3

        Hi, Thanks for your reply.. I already looked into this article, but I need a way to monitor 3rd party applications where I don't have any source from.. I am looking for a couple days now and I don't get a clear picture where to start. I know it's not simple, but I need to know what technique is useful for me.. Thanks in advance!

        1 Reply Last reply
        0
        • D Derckie2

          Hello all, I am searching on the net for 2 days and I am reading a lot about Hooking and Injecting your own dll's into another process, but I don't get clear what technique is usefull for me. Let me explain what I want to accomplish. I want to monitor a 3rd party application what actions a user takes, like he opened an options window and on the close button click I want to get the values he entered. Or he opened a process that takes a while (like processing a document). I looked into some things, but can get a clear view on this.. Can someone helps me out? Many thanks in advance, Derck (P.S. I don't find many vb.net samples on hooking or subclassing :()

          T Offline
          T Offline
          Tim McCurdy
          wrote on last edited by
          #4

          Plain and simple, you can't without in-depth knkowledge of the 3rd party app. There are two ways: 1.) Use DDE 2.) Get the Window Handle and use some API like we did in VB6 to subclass that windows' WndProc event into your own window. I'll tell you now, since every window, including controls, have their own WndProc, you're not going to be able to write a "Global" handler for some app's events. Unless this 3rd party app is supplying an API (like Adobe or MS Word, Outlook for example), you can't do it.

          D 1 Reply Last reply
          0
          • T Tim McCurdy

            Plain and simple, you can't without in-depth knkowledge of the 3rd party app. There are two ways: 1.) Use DDE 2.) Get the Window Handle and use some API like we did in VB6 to subclass that windows' WndProc event into your own window. I'll tell you now, since every window, including controls, have their own WndProc, you're not going to be able to write a "Global" handler for some app's events. Unless this 3rd party app is supplying an API (like Adobe or MS Word, Outlook for example), you can't do it.

            D Offline
            D Offline
            Derckie2
            wrote on last edited by
            #5

            Many thanks! I will look into the options you gave me.. What I need is 1) Detects a user close the options form (like windows messenger) 2) Capture and save the values he entered.. I am not making a global spy util (maybe it is), but I want to monitor an application like Crystal Reports what actions the user did and what data he saw... Maybe there are some other options? Thanks!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups