GetThreadName
Returns the name of a C Library thread
#include <nwthread.h>
int GetThreadName (
int threadID,
char *tName);
This function returns the name of a thread. If an invalid thread ID is passed, it returns an EBADHNDL error.
This function returns the name of the specified C Library thread in tName. The tName parameter can hold up to 17+1 characters.