Thread: Terminate Process

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    55

    Terminate Process

    I'm looking on how to terminate/kill another process when my program closes. I am using WM_CLOSE in my program, so when I close my program, a selected process closes also. Example: My program is running and I open Calculator, as soon as I close my program, Calculator closes as well. [using c++] Any help would be appreciated, thanks!

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    55
    Just what I was looking for =] Searched MSDN with nothing...thanks for this. Will check back if I am having a problem, which I shouldn't!

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Here is a code sample that demonstrates another method.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 10-15-2008, 09:24 AM
  2. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 01:43 AM
  3. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07:53 AM
  4. Terminate Process by Specific FullFilePath
    By MattKamil in forum Windows Programming
    Replies: 1
    Last Post: 07-05-2006, 04:15 PM