Thread: Close another exe from another exe??

  1. #1
    Registered User
    Join Date
    Jun 2002

    Close another exe from another exe??

    I can use ShellExecute no problem to open another exe........
    How can I close another exe again..........


  2. #2
    Registered User
    Join Date
    Feb 2002

    Don't use ShellExecute to run an exe otherwise use CreateProcess API function and get a handle of Process by it.

    When you want to terminate the process just call EndProcess function passing process handle to it.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Close an HTTPListenerResponse.OutputStreram
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 04-23-2008, 11:00 PM
  2. open() and close()
    By SoFarAway in forum C Programming
    Replies: 3
    Last Post: 04-08-2005, 01:16 PM
  3. executed exe does not close
    By Dream in forum C++ Programming
    Replies: 2
    Last Post: 11-28-2001, 04:38 AM
  4. Ghost in the CD Drive
    By Natase in forum A Brief History of
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM
  5. How to close an EXE
    By Unregistered in forum A Brief History of
    Replies: 3
    Last Post: 10-11-2001, 01:29 PM