KillTaskByName()

  KillTaskByName

Description

KillTaskByName() is used to kill a task specified by a process name.

NOTE: On the UNIX systems, this API is not supported.

Call Signature

int KillTaskByName ( string task_name )

Return Value

int

Returns -1 if the kill failed, 0 if it may have been killed, and 1 if it was killed for sure

Argument

string task_name:

The name of the task to kill.

See also

RunTask()

GetPID()

GetPIDByName()

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.