The SnmpMgrClose function closes communications sockets and data structures associated with the specified session. This function is an element of the SNMP Management API.
BOOL SnmpMgrClose(
LPSNMP_MGR_SESSION session // SNMP session pointer
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. This function may return Windows Sockets error codes.
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in mgmtapi.h.
Import Library: Use mgmtapi.lib.
Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpMgrOpen, SnmpMgrRequest