PeerGetItemCount function (p2p.h)
The PeerGetItemCount function returns a count of the items in a peer enumeration.
Syntax
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGetItemCount(
[in] HPEERENUM hPeerEnum,
[out] ULONG *pCount
);
Parameters
[in] hPeerEnum
Handle to the peer enumeration on which a count is performed. A peer enumeration function generates this handle.
[out] pCount
Returns the total number of items in a peer enumeration.
Return value
Returns S_OK if the operation succeeds. Otherwise, the function returns one of the following values.
Return code | Description |
---|---|
|
One of the parameters is not valid. |
|
There is not enough memory to perform the specified operation. |
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 |