[This is preliminary documentation and subject to change.]
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 NT 5.0 and later. For more information, see the following Remarks section.
VOID SnmpExtensionClose(
);
This function has no parameters.
None.
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.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in snmp.h.
Import Library: User-defined.
Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpExtensionInit, SnmpExtensionInitEx