Skip to content

Latest commit

 

History

History
149 lines (108 loc) · 4.75 KB

nf-p2p-peercollabinviteendpoint.md

File metadata and controls

149 lines (108 loc) · 4.75 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.PeerCollabInviteEndpoint
PeerCollabInviteEndpoint function (p2p.h)
Sends an invitation to a specified peer endpoint to join the sender's peer collaboration activity. This call is synchronous and, if successful, obtains a response from the peer endpoint.
PeerCollabInviteEndpoint
PeerCollabInviteEndpoint function [Peer Networking]
p2p.peercollabinviteendpoint
p2p/PeerCollabInviteEndpoint
p2p\peercollabinviteendpoint.htm
p2p
c77eee5b-6fee-4eaa-ac0e-94a0fd3df92e
12/05/2018
PeerCollabInviteEndpoint, PeerCollabInviteEndpoint function [Peer Networking], p2p.peercollabinviteendpoint, p2p/PeerCollabInviteEndpoint
p2p.h
Windows
Windows Vista [desktop apps only]
None supported
P2P.lib
P2P.dll
Windows
19H1
PeerCollabInviteEndpoint
p2p/PeerCollabInviteEndpoint
c++
APIRef
kbSyntax
DllExport
P2P.dll
PeerCollabInviteEndpoint

PeerCollabInviteEndpoint function

-description

The PeerCollabInviteEndpoint function sends an invitation to a specified peer endpoint to join the sender's peer collaboration activity. This call is synchronous and, if successful, obtains a response from the peer endpoint.

-parameters

-param pcEndpoint [in]

Pointer to a PEER_ENDPOINT structure that contains information about the invited peer. This peer is sent an invitation when this API is called.

This parameter must not be set to NULL.

-param pcInvitation [in]

Pointer to a PEER_INVITATION structure that contains the invitation request to send to the endpoint specified in pcEndpoint. This parameter must not be set to NULL.

-param ppResponse [out]

Pointer to a PEER_INVITATION_RESPONSE structure that receives an invited peer endpoint's responses to the invitation request.

If this call fails with an error, on output this parameter will be NULL.

Free the memory associated with this structure by pass it to PeerFreeData.

-returns

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

Return code Description
E_OUTOFMEMORY
There is not enough memory to support this operation.
E_INVALIDARG
One of the arguments is invalid.
PEER_E_TIMEOUT
The recipient of the invitation has not responded within 5 minutes.

-remarks

This API sends an invitation to the endpoint specified as input. It does not guarantee that the recipient of the invite is the specific contact that the user intended to send the invite to. To ensure that the invitation is sent to the correct contact, call PeerCollabInviteContact.

A toast will appear for the recipient of the invitation. This toast will be converted to a dialog box in which the user can accept or decline the invitation. When the invitation is successfully accepted, the collaborative application is launched on the recipient's machine.

To successfully receive the invitation, the application must be registered on the recipient's machine using PeerCollabRegisterApplication. It is also possible for the sender of the invite to have failure codes returned because the recipient has turned off application invites.

The recipient of the invitation must respond within 5 minutes to avoid timeout.

-see-also

PEER_ENDPOINT

PEER_INVITATION

PEER_INVITATION_RESPONSE

Peer Collaboration API Functions

PeerCollabGetAppLaunchInfo