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 |
---|---|
|
One of the parameters is not valid. |
|
There is not enough memory to perform the specified operation. |
|
The handle to the peer graph is invalid. |
|
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 |