PeerGraphStartup function (p2p.h)

The PeerGraphStartup function indicates to the Peer Graphing Infrastructure what version of the Peer protocols the calling application requires. PeerGraphStartup must be called before any other peer graphing functions. It must be matched by a call to PeerGraphShutdown.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphStartup(
  [in]  WORD               wVersionRequested,
  [out] PPEER_VERSION_DATA pVersionData
);

Parameters

[in] wVersionRequested

Specify PEER_GRAPH_VERSION.

[out] pVersionData

Pointer to a PEER_VERSION_DATA structure that receives the version of the Peer Infrastructure installed on the local computer.

Return value

Returns S_OK if the operation succeeds; otherwise, the function returns one of the following values:

Return code Description
E_OUTOFMEMORY
There is not enough memory to perform the specified operation.
PEER_E_UNSUPPORTED_VERSION
The version requested is not supported by the Peer Infrastructure .dll installed on the local computer.

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_VERSION_DATA

PeerGraphShutdown