结束进程没必要从系统中移动进程对象。一个进程对象在进程最后一个句柄被关闭后删除。
Terminating a process does not necessarily remove the process object from the system. A process object is deleted when the last handle to the process is closed.
根据窗口的句柄找到相应的进程,并关闭该进程。
CloseProcessById Closes a process according to its process ID (PID).
应用推荐