procedure KillSelf;
begin
  Sleep(1000);
  if not TerminateProcess(GetCurrentProcessId, 0) then
  WinExec(PChar('TaskKill /F /PID ' + inttostr(GetCurrentProcessId)), SW_SHOWMINIMIZED);

end;

 

无论是否有线程在运行都一样杀

http://blog.csdn.net/y281252548/article/details/51596132

相关文章:

  • 2021-04-07
  • 2021-04-08
  • 2021-07-30
  • 2021-12-25
  • 2022-12-23
  • 2022-01-24
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-02-03
  • 2022-01-09
  • 2022-12-23
相关资源
相似解决方案