GetThreadName

Returns the name of a C Library thread

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Service:Thread

Syntax

  #include <nwthread.h>  
   
  int GetThreadName  (  
     int     threadID,   
     char   *tName); 
  

Parameters

threadID
(IN) Specifies a thread ID.
tName
(OUT) Points to the name of the thread.

Return Values

This function returns the name of a thread. If an invalid thread ID is passed, it returns an EBADHNDL error.

Remarks

This function returns the name of the specified C Library thread in tName. The tName parameter can hold up to 17+1 characters.

See Also

GetThreadID, RenameThread