Platform SDK: Network Management

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.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Unsupported.
  Header: Declared in Mgmtapi.h.
  Library: Use Mgmtapi.lib.

See Also

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