Is there a better way to use TerminateProcess? I want something like ExitProcess that can be used on processes other than the running process.
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=34428Originally 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.
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......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.
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