PeerCollabCloseHandle function (p2p.h)

The PeerCollabCloseHandle function closes the handle to a Peer Collaboration activity invitation.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerCollabCloseHandle(
  [in] HANDLE hInvitation
);

Parameters

[in] hInvitation

Handle obtained by a previous call to PeerCollabAsyncInviteContact or PeerCollabAsyncInviteEndpoint.

Return value

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_HANDLE
The handle specified is invalid.

Remarks

You must call this API after the handle has been signaled for an event and any data associated with the event has been obtained.

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

See also

Peer Collaboration API Functions

PeerCollabAsyncInviteContact

PeerCollabAsyncInviteEndpoint