SnmpMgrClose

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
);
 

Parameters

session
[in] Pointer to an internal structure that specifies the session to close.

Return Values

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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in mgmtapi.h.
  Import Library: Use mgmtapi.lib.

See Also

Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpMgrOpen, SnmpMgrRequest