TAsyncProcess.HandleProcessTermination procedure
Performs actions needed when the process is terminated.
Declaration
procedure HandleProcessTermination(AData: PtrInt;
AReason: TChildExitReason;
AInfo: dword)Arguments
AData | Data for the process notification. |
AReason | Reason(s) for the process notification. |
AInfo | Process exit code. |
Description
HandleProcessTermination is a procedure which performs actions
needed when the process is terminated. HandleProcessTermination is assigned
using
AddProcessEventHandler when
Execute is called.
HandleProcessTermination calls UnhookProcessHandle and
UnhookPipeHandle to release the handlers in the class instance.
HandleProcessTermination signals the OnTerminate event handler
when it has been assigned.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
