UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:p2p.PeerGroupCloseDirectConnection |
PeerGroupCloseDirectConnection function (p2p.h) |
The PeerGroupCloseDirectConnection function closes a specific direct connection between two peers. |
|
p2p\peergroupclosedirectconnection.htm |
p2p |
56b47743-f205-407b-80f2-03e3c9b78be1 |
12/05/2018 |
PeerGroupCloseDirectConnection, PeerGroupCloseDirectConnection function [Peer Networking], p2p.peergroupclosedirectconnection, p2p/PeerGroupCloseDirectConnection |
p2p.h |
Windows |
Windows XP with SP2 [desktop apps only],Windows XP with SP1 with the Advanced Networking Pack forWindows XP |
None supported |
P2P.lib |
P2P.dll |
Windows |
19H1 |
|
|
|
|
|
|
The PeerGroupCloseDirectConnection function closes a specific direct connection between two peers.
Handle to the peer group that contains the peers involved in the direct connection. This handle is returned by the PeerGroupCreate, PeerGroupOpen, or PeerGroupJoin function. This parameter is required.
Specifies the connection ID to disconnect from. This parameter is required and has no default value.
Returns S_OK if the operation succeeds. Otherwise, the function returns one of the following values.
Return code | Description |
---|---|
|
A direct connection that matches the supplied connection ID cannot be found. |
|
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.