GetNLMNameFromNLMID

Returns the name of a C Library NLM

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 GetNLMNameFromNLMID  (  
     int     NLMID,   
     char   *NLMFileName,   
     char   *NLMName); 
  

Parameters

NLMID
(IN) Specifies an NLM ID.
NLMFileName
(OUT) Points to the NLM filename used in the linker file.
NLMName
(OUT) Points to the descriptive name of the NLM.

Return Values

This function returns the NLM name. If an invalid NLM ID is passed, it returns a value of -1 and errno is set to EBADHNDL.

Remarks

This function returns the long name (as it appears on the module listing) and the short name (as specified in the NAME directive in the linker directive file) of the NLM. For example, if you specify the ID for CLIB.NLM for the NLMID parameter, on return NLMFileName points to CLIB.NLM and NLMName points to NLM.

See Also

MapNLMIDToHandle