328
K
A
DAK
AMX 86 Procedures
ajtktrm ajtktrm
Purpose Enable/Disable External Task Termination
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID taskid;
void ttproc();
int status;
.
.
status = ajtktrm(taskid, ttproc);
AX DX ES:BX
Where taskid is the task id of the task whose Termination Procedure is to be set.
ttproc is a pointer to the Task Termination Procedure which is to be
executed by the task whenever the task is stopped, killed or deleted
(see ajtkstp, ajtkill, ajtkdel).
If ttproc = NULL (0L), termination of the task is inhibited until a valid
Task Termination Procedure is set with ajtktrm.
Results Interrupts are untouched.
Status is returned.
AEROK = Call successful
AERNST = Invalid task id
AERANA = Installation is not allowed
The task is in the process of being stopped, killed or
deleted.
See Also ajtkdel, ajtkstp, ajtkill