RenameThread

Renames 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 RenameThread  (  
     int     threadID,   
     char   *newName); 
  

Parameters

threadID
(IN) Specifies a thread ID.
newName
(IN) Points to the new thread name.

Return Values

This function returns ESUCCESS if it completes successfully. It returns EBADHNDL if an invalid thread ID is passed.

Remarks

This function renames a C Library thread. The new name can be up to 17 characters long.