Cicode Programming Reference > Cicode Function Categories > Task Functions Introduction > TaskSetSignal


Manually applies a signal to a specified task.


TaskSetSignal(Hnd, nSignal)


The task's handle. To retrieve this use the function TaskHnd().


Allows you to signal a specified task. Set to 0 (zero) for normal operation, 1 to stop the task or any other number that represents a defined signal.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

TaskGetSignal, TaskHnd, TaskKill, TaskSuspend, TaskNew, TaskResume

See Also

Task Functions