Terminate Process

This is a discussion on Terminate Process within the Windows Programming forums, part of the Platform Specific Boards category; I'm looking on how to terminate/kill another process when my program closes. I am using WM_CLOSE in my program, so ...

  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

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21