Better Version of TerminateProcess

This is a discussion on Better Version of TerminateProcess within the Windows Programming forums, part of the Platform Specific Boards category; Is there a better way to use TerminateProcess? I want something like ExitProcess that can be used on processes other ...

  1. #1
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136

    Better Version of TerminateProcess

    Is there a better way to use TerminateProcess? I want something like ExitProcess that can be used on processes other than the running process.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: Better Version of TerminateProcess

    Originally posted by golfinguy4
    Is there a better way to use TerminateProcess? I want something like ExitProcess that can be used on processes other than the running process.
    TerminateProcess can be used on any process that you can open a handle to. Look at this http://www.cprogramming.com/cboard/s...threadid=34428

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Nah, I mean one that closes the app "nicely." TerminateProcess doesn't notify dll's of a shutdown, correct?

    I was looking for a more clean way.

    Basically, I have a prog that lists all running processes. I want to be able to end any one of them on the list.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by golfinguy4
    Nah, I mean one that closes the app "nicely." TerminateProcess doesn't notify dll's of a shutdown, correct?

    I was looking for a more clean way.

    Basically, I have a prog that lists all running processes. I want to be able to end any one of them on the list.
    Yeah, it does force processes to close, and to close all handles......

    If you want a nice way, perhaps you could find a window and send WM_QUIT to it....but it would need a window for that of course

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. No Version info tab in file properties?
    By cpjust in forum Windows Programming
    Replies: 2
    Last Post: 06-03-2008, 03:42 PM
  3. How to set File Version of VC++ 6 dll
    By mercury529 in forum Windows Programming
    Replies: 3
    Last Post: 12-08-2006, 01:49 PM
  4. Finding the windows version...
    By The_Muffin_Man in forum Windows Programming
    Replies: 1
    Last Post: 06-10-2004, 11:39 PM
  5. Replies: 2
    Last Post: 05-22-2004, 02:10 AM

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