PeerGraphGetStatus function (p2p.h)

The PeerGraphGetStatus function returns the current status of the peer graph.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphGetStatus(
  [in]  HGRAPH hGraph,
  [out] DWORD  *pdwStatus
);

Parameters

[in] hGraph

Handle to the peer graph.

[out] pdwStatus

Receives the current status of the peer graph. Returns one or more of the PEER_GRAPH_STATUS_FLAGS values.

Return value

This function can return one of these 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.
PEER_E_INVALID_GRAPH
The handle to the peer graph is invalid.
PEER_E_NOT_INITIALIZED
The 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_STATUS_FLAGS