PeerEndEnumeration function (p2p.h)

The PeerEndEnumeration function releases an enumeration, for example, a record or member enumeration, and deallocates all resources associated with the enumeration.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerEndEnumeration(
  [in] HPEERENUM hPeerEnum
);

Parameters

[in] hPeerEnum

Handle to the enumeration to be released. This handle is generated by a peer enumeration function.

Return value

Returns S_OK if the operation succeeds. Otherwise, the function returns the following value.

Return code Description
E_INVALIDARG
The parameter is not valid.

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 P2P.lib
DLL P2P.dll

See also

PeerEnumGroups

PeerEnumIdentities

PeerGetItemCount

PeerGetNextItem

PeerGroupEnumConnections

PeerGroupEnumMembers

PeerGroupEnumRecords