Terminates the execution of a thread.
procedure EndThread(ExitCode: Integer);
EndThread(int ExitCode);
System
EndThread terminates execution of a thread with the specified ExitCode.
BeginThread
TThreadFunc