On Microsoft Technet I can read that taskkill
has a /f
parameter to kill a process forcefully. I wonder what this does internally, to understand the impact of such an action.
taskkill
(without /f
) does not simply send a WM_CLOSE message to the process, otherwise my application would ask whether or not to save the open documents. This makes me assume that it already operates on a TerminateProcess (MSDN) level. However, TerminateProcess
does not have a parameter for forcing a kill.
So, what do taskkill
and taskkill /f
do internally?
I read the related question Difference between C# Process.Kill() and Taskkill but it does not have an answer.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…