Compartilhar via


PeerGetItemCount (Windows CE 5.0)

Send Feedback

This function retrieves a count of the items that are present in a peer enumeration.

HRESULT WINAPI PeerGetItemCount(  HPEERENUM hPeerEnum,  PULONG pCount);

Parameters

  • hPeerEnum
    [in] Handle to the peer enumeration on which the count is performed. This handle is generated by a peer enumeration function.
  • pCount
    [out] Returns the total number of items in the peer enumeration.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function call succeeded.
E_INVALIDARG One of the parameters is not valid.
E_OUTOFMEMORY There is not enough memory to perform the specified operation.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: p2p.h.
Link Library: p2p.lib.

See Also

Peer-to-Peer Common Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.