ClearNLMDontUnloadFlag

Sets a flag in the header of an NLM to allow it to be unloaded with the UNLOAD command at the system console

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

Syntax

  #include <nwthread.h>  
   
  int ClearNLMDontUnloadFlag  (  
     int   NLMID); 
  

Parameters

NLMID
(IN) Specifies the ID of the NLM that is to be made so it can be unloaded from the system console. This ID can be obtained from the GetNLMID function.

Return Values

The following table lists return values and descriptions.

Value

Hex

Name

Description

–1

 

EFAILURE

NLMID was an invalid NLM ID.

0

(0x00)

ESUCCESS

The don’t unload flag has been set.

Remarks

This function reverses the effects of the SetNLMDontUnloadFlag function.

If SetNLMDontUnloadFlag is called, the NLM cannot be unloaded until ClearNLMDontUnloadFlag is called.

For more information unloading NLM applications, see CHECK Function (NDK: NLM Development Concepts, Tools, and Functions).

See Also

SetNLMDontUnloadFlag, GetNLMID

Example

See example for SetNLMDontUnloadFlag.