PeerPnrpGetCloudInfo function (p2p.h)

The PeerPnrpCloudInfo function retrieves information on the Peer Name Resolution Protocol (PNRP) clouds in which the calling peer is participating.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerPnrpGetCloudInfo(
  [out] ULONG                 *pcNumClouds,
  [out] PPEER_PNRP_CLOUD_INFO *ppCloudInfo
);

Parameters

[out] pcNumClouds

The number of PNRP clouds returned in ppCloudInfo.

[out] ppCloudInfo

Pointer to a list of PEER_PNRP_CLOUD_INFO structures that contain information about the PNRP clouds in which the calling peer is participating.

This data returned by this parameter must be freed by calling PeerFreeData.

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
One of the parameters is not valid.
E_OUTOFMEMORY
There is not enough memory to perform the specified operation.

Requirements

   
Minimum supported client Windows XP with SP2 [desktop apps only],Windows XP with SP1 with the Advanced Networking Pack for Windows XP
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header p2p.h
Library P2P.lib
DLL P2P.dll

See also

PEER_PNRP_CLOUD_INFO