Results 1 to 4 of 4

Thread: System.Diagnostics.Process..?

  1. #1

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Red face System.Diagnostics.Process..?

    In the old days when I could use APi and not have to worry this would be easy... but anyway

    Does anyone know of a way to use .net to subclass the events of certian modules loaded into a process.I don't know a hook or something.. damn i'm tired....
    Magiaus

    If I helped give me some points.

  2. #2
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    I wanted to subclass a Form with my user control to get mouse events, and here is what I did to get around the issue.

    I declared a Form object withevents, set it to the form I wanted and then used its event handlers within my usercontrol object.

    Maybe something like this can work for you , too.
    That which does not kill us, only makes us stronger.

  3. #3

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    i wish it were that easy

    what i am after is an outside process, I can attach to it with the system.diagnostics.Process but I can't do anything except close it and monitor it's events and make logs. I actually need to filter its incoming and outgoing tcp/ip packets and be able to modify them if need be in an event. I am working on doing it in vb6 now but i wanted to do it in .net.

    thx


    ---------------------------------------------------------------------------
    man i need to proof read this stuff i had some major errors
    ---------------------------------------------------------------------------
    Last edited by Magiaus; May 9th, 2002 at 04:47 PM.
    Magiaus

    If I helped give me some points.

  4. #4
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    Like you said... in the old days this would have been easy.

    Good luck!

    That which does not kill us, only makes us stronger.

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