Skip to content

Latest commit

 

History

History
115 lines (89 loc) · 3.21 KB

nf-p2p-peergroupclosedirectconnection.md

File metadata and controls

115 lines (89 loc) · 3.21 KB
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.
PeerGroupCloseDirectConnection
PeerGroupCloseDirectConnection function [Peer Networking]
p2p.peergroupclosedirectconnection
p2p/PeerGroupCloseDirectConnection
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
PeerGroupCloseDirectConnection
p2p/PeerGroupCloseDirectConnection
c++
APIRef
kbSyntax
DllExport
P2P.dll
PeerGroupCloseDirectConnection

PeerGroupCloseDirectConnection function

-description

The PeerGroupCloseDirectConnection function closes a specific direct connection between two peers.

-parameters

-param hGroup [in]

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.

-param ullConnectionId [in]

Specifies the connection ID to disconnect from. This parameter is required and has no default value.

-returns

Returns S_OK if the operation succeeds. Otherwise, the function returns one of the following values.

Return code Description
PEER_E_CONNECTION_NOT_FOUND
A direct connection that matches the supplied connection ID cannot be found.
PEER_E_INVALID_GROUP
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.

-see-also

PeerGroupCreate

PeerGroupJoin

PeerGroupOpen

PeerGroupOpenDirectConnection