Is there a difference between taskkill /f and C# Process.Kill?

扶醉桌前 提交于 2019-12-12 12:11:56

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!