PeerCollabGetInvitationResponse function (p2p.h)
The PeerCollabGetInvitationResponse function obtains the response from a peer previously invited to join a peer collaboration activity.
Syntax
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerCollabGetInvitationResponse(
[in] HANDLE hInvitation,
[out] PPEER_INVITATION_RESPONSE *ppInvitationResponse
);
Parameters
[in] hInvitation
Handle to an invitation to join a peer collaboration activity.
[out] ppInvitationResponse
Pointer to the address of a PEER_INVITATION_RESPONSE structure that contains an invited peer's response to a previously transmitted invitation request.
Free the memory associated with this structure by calling PeerFreeData.
Return value
Returns S_OK if the function succeeds. Otherwise, the function returns one of the following values.
Return code | Description |
---|---|
|
The provided handle is invalid. |
|
There is not enough memory to support this operation. |
|
The invitation recipient could not be found. |
|
The invitation was previously canceled. |
|
The response to the peer invitation is not available. |
|
A connection to the graph or group has failed, or a direct connection in a graph or group has failed. |
Remarks
This function must be called after PeerCollabAsyncInviteContact or PeerCollabAsyncInviteEndpoint is called and the event handle provided to PeerCollabRegisterEvent is signaled on the peer that sent the invitation.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | p2p.h |
Library | P2P.lib |
DLL | P2P.dll |