PeerGroupClose function (p2p.h)
The PeerGroupClose function invalidates the peer group handle obtained by a previous call to the PeerGroupCreate, PeerGroupJoin, or PeerGroupOpen function.
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGroupClose( [in] HGROUP hGroup );
Handle to the peer group to close. This handle is returned by the PeerGroupCreate, PeerGroupOpen, or PeerGroupJoin function. This parameter is required.
Returns S_OK if the operation succeeds. Otherwise, the function returns the following value.
||The handle to the peer group is invalid.|
Cryptography-specific errors can be returned from the Microsoft RSA Base Provider. These errors are prefixed with CRYPT_* and defined in Winerror.h.
If the peer group handle closed is the last handle that refers to a peer group shared across multiple applications or processes, the call also closes the respective network connections for the peer.
|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|