问题
A user is seeing different behaviour between my C# program that uses System.Diagnostics.Process.Kill and the Windows 7 command-line program "taskkill /f". Possibly the program is dying more cleanly with taskkill
Does "taskkill /f" attempt to issue a WM_CLOSE, SC_CLOSE or WM_QUIT message before resorting to TerminateProcess? Are there any other pertinent differences?
来源:https://stackoverflow.com/questions/18701777/is-there-a-difference-between-taskkill-f-and-c-sharp-process-kill