MapNLMIDToHandle

Returns the handle associated with the NLM ID

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 MapNLMIDToHandle  (  
     int   NLMID); 
  

Parameters

NLMID
(IN) Specifies an NLM ID (C Library structure).

Return Values

This function returns the handle associated with the specified NLM ID. It returns a value of -1 if an invalid NLM ID was passed.

Remarks

This function can be used in registered LOAD and UNLOAD event handlers to compare known C Library NLM IDs with the NLM handle that the event handler function is passed with.

See Also

FindNLMHandle, GetNLMID, RegisterForEvent (NDK: NLM Development Concepts, Tools, and Functions)