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

    How to end process tree?

    I'm looking for something like "End process tree" form task manager.
    I start an application using ShellExecuteEx. I have its handle and TerminateProcess works just fine, however aplication starts its own processes which remain. Sending WM_QUIT message doesn't work at all. Question is how can I kill whole process tree?
    I don't care about proper shutwown, so even "brute force" metods will do fine.

    thanks for any help

  2. #2
    Join Date
    Jul 2002
    Location
    Boston, MA
    Posts
    335

    Re: How to end process tree?

    on win2000/XP look into the JOB object, on 95/98/ME hijack create process API to track creation of the child processes

  3. #3
    Join Date
    Mar 2005
    Posts
    22

    Re: How to end process tree?

    Works like a charm.
    Thanks a lot.

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