ImportSymbol

Returns a pointer to an exported symbol

Local Servers:blocking
Remote Servers:N/A
Classification:3.12, 3.2, 4.x, 5.x, 6.x
Service:Advanced

Syntax

  #include <nwadv.h>  
   
  void *ImportSymbol  (  
     int    NLMHandle,   
     char  *symbolName); 
  

Parameters

NLMHandle

(IN) Specifies the handle of the NLM that requires the symbol.

symbolName

(IN) Points to the symbol to import.

Return Values

Returns a pointer to the function associated with the symbol upon success. Otherwise, it returns 0.

Remarks

ImportSymbol is useful for resolving external symbol references that do not exist when the NLM requiring those symbols loads. For example, if an NLM calls Network Management functions, that NLM can test whether the needed Network Management symbols are available.

The NLMHandle parameter can be obtained by calling GetNLMHandle.

See impsymbl.c.

See Also

GetNLMHandle (NDK: NLM Threads Management), UnimportSymbol