Platform SDK: Network Management

SnmpExtensionClose

The Microsoft SNMP service calls the SnmpExtensionClose function to request that the SNMP extension agent deallocate resources and terminate operations. This function is an element of the SNMP Extension Agent API.

Note  The SNMP service calls the SnmpExtensionClose function only if the extension agent is running on Windows 2000. For more information, see the following Remarks section.

VOID SnmpExtensionClose();

Parameters

This function has no parameters.

Return Values

None.

Remarks

An SNMP extension agent that runs on Windows NT 3.51 or 4.0 can also export the SnmpExtensionClose function. Because the SNMP service does not call this function under these conditions, the extension agent must call SnmpExtensionClose manually. It should do this when the SNMP service calls the extension agent's DllMain function with the value DLL_PROCESS_DETACH. The extension agent must clean up allocated resources and terminate services at this time.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Snmp.h.

See Also

Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpExtensionInit, SnmpExtensionInitEx