The handle ID is a pointer to the task control block, in which the name is stored. You could add a function to tasks.c like
char *pcGetTaskName(void *handle)
{
return ((tskTCB*)handle)->pcTaskName;
}
I have not actually tested this code, but you see the idea.
All the kernel data structures use data hiding in this way. Inside the files that define the structures the structure members are fully visible. Outside the files the structures are defined as void* to keep their members hidden - and access can only be obtained through access functions.
There is no particular reason why a function to return the name has never been included. I have added it to the todo list so it will be there in the next release.
Regards.