PeerGraphEndEnumeration function (p2p.h)

The PeerGraphEndEnumeration function releases an enumeration handle, and frees the resources associated with an enumeration.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphEndEnumeration(
  [in] HPEERENUM hPeerEnum
);

Parameters

[in] hPeerEnum

Handle to an enumeration to release. This handle is returned by one of the following functions: PeerGraphEnumConnections, PeerGraphEnumNodes, PeerGraphEnumRecords, or PeerGraphSearchRecords.

Return value

If the function call succeeds, the return value is S_OK. Otherwise, it returns one of the following values.

Return code Description
E_INVALIDARG
A parameter is not valid.
PEER_E_NOT_INITIALIZED
A graph must be initialized with a call to PeerGraphStartup before using this function.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only],Windows XP with SP1 with the Advanced Networking Pack forWindows XP
Minimum supported server None supported
Target Platform Windows
Header p2p.h
Library P2PGraph.lib
DLL P2PGraph.dll

See also

PeerGraphEnumConnections

PeerGraphEnumNodes

PeerGraphEnumRecords

PeerGraphSearchRecords