如何杀死某个进程呢?
番茄系统家园 · 2021-08-13 07:30:22

();
,,,,usetheKillmethod.ThebehaviorofCloseMainWindowisidenticaltothatofauserclosinganapplication'smainwindowusingthesystemmenu.Therefore,therequesttoexittheprocessbyclosingthemainwindowdoesnotforcetheapplicationtoquitimmediately.
DataeditedbytheprocessorresourcesallocatedtotheprocesscanbelostifyoucallKill.Killcausesanabnormalprocessterminationandshouldbeusedonlywhennecessary.CloseMainWindowenablesanorderlyterminationoftheprocessandclosesallwindows,soitispreferableforapplicationswithaninterface.IfCloseMainWindowfails,youcanuseKilltoterminatetheprocess.Killistheonlywaytoterminateprocessesthatdonothavegraphicalinterfaces.
YoucancallKillandCloseMainWindowonlyforprocessesthatarerunningonthelocalcomputer.Youcannotcauseprocessesonremotecomputerstoexit.Youcanonlyviewinformationforprocessesrunningonremotecomputers.
免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/post/31589.html。
