Obtain task name of software from code

Hi,
I am trying to obtain the name of a task by looking at the task table
using get_taskinfo(); I have not been able to locate a field that has
the task name. Any ideas ?

Padraig Furlong