FindNLMHandle

Returns the handle of a loaded NLM

Local Servers:blocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:Thread

Syntax

  #include <nwthread.h>  
   
  unsigned int FindNLMHandle  (  
     char   *moduleName); 
  

Parameters

moduleName
(IN) Points to the full filename (including the extension) of the NLM whose handle is desired.

Return Values

If the NLM is loaded, its handle is returned. Otherwise, NULL is returned.

Remarks

This function searches the list of loaded NLM applications, comparing their names to the specified moduleName. If a match is found, the handle for that NLM is returned.

See Also

GetNLMHandle

Example

  #include <nwthread.h>  
  #include <stdio.h>  
   
  unsigned int   moduleHandle;  
  moduleHandle = FindNLMHandle ("TEST.NLM");  
  if (moduleHandle == NULL)  
     printf ("This NLM is not loaded!\n");