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 |
|---|---|
|
There is not enough memory to support this operation. |
|
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
| 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 |