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.
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphShutdown();
This function has no parameters.
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:
||The peer graph must be initialized with a call to PeerGraphStartup before using this function.|
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.
|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|