PeerGraphShutdown function (p2p.h)

The PeerGraphShutdown function cleans up any resources allocated by the call to PeerGraphStartup. There must be a call to PeerGraphShutdown for each call to PeerGraphStartup.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphShutdown();

Return value

Returns S_OK if the operation succeeds; otherwise, the function returns the one of the standard error codes defined in WinError.h, or the function returns the following value:

Return code Description
PEER_E_NOT_INITIALIZED
The peer graph must be initialized with a call to PeerGraphStartup before using this function.

Remarks

When the last PeerGraphShutdown is called for a peer graph, all the opened peer graphs, outstanding enumeration handles, and outstanding event registration handles are automatically released.

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

PeerGraphStartup