how to kill a process
C / C++ / MFC
4
Posts
4
Posters
0
Views
1
Watching
-
Look at: http://www.codeproject.com/cpp/kill_process.asp?df=100&forumid=132&exp=0&select=4095[^] That should help.
-
-
Killing a process should only be a last resort and can be dangerous; better to ask it to close down. That said, you can use the
TerminateProcess
API to kill a process given aHANDLE
to the process. TheOpenProcess
function can be used to get a processHANDLE
from its id.Steve