SysUtils.AddTerminateProc
From RAD Studio VCL Reference
Contents |
Delphi Information
From SysUtils.pas
procedure AddTerminateProc(TermProc: TTerminateProc);
Unit: SysUtils
Type: procedure
Visibility: public
C++ Information
From SysUtils.hpp
void __fastcall AddTerminateProc(bool (_fastcall *)() TermProc);
Unit: SysUtils
Type: function
Description
Adds a terminate procedure to the system list of termination procedures.
Call AddTerminateProc in Delphi code to add a procedure that is called when the application is about to terminate. The runtime library calls all termination procedures before the application terminates. The supplied termination procedure (TermProc) should return True if the application can safely terminate or False if the application cannot safely terminate. If any termination procedure returns False, the application does not terminate.