PeerGraphGetProperties function (p2p.h)

The PeerGraphGetProperties function retrieves the current peer graph properties.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphGetProperties(
  [in]  HGRAPH                 hGraph,
  [out] PPEER_GRAPH_PROPERTIES *ppGraphProperties
);

Parameters

[in] hGraph

Handle to a peer graph.

[out] ppGraphProperties

Receives a pointer to a PEER_GRAPH_PROPERTIES structure. When the structure is not needed, free it by calling PeerGraphFreeData.

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 a specified operation.
PEER_E_GRAPH_NOT_READY
The graph is not synchronized. Data cannot be retrieved until a peer graph is synchronized.
PEER_E_INVALID_GRAPH
The handle to a peer graph is invalid.
PEER_E_NOT_INITIALIZED
A peer 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

PEER_GRAPH_PROPERTIES

PeerGraphCreate

PeerGraphFreeData