PeerCollabUnregisterEvent function (p2p.h)

The PeerCollabUnregisterEvent function deregisters an application from notification about specific peer collaboration events.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerCollabUnregisterEvent(
  [in] HPEEREVENT hPeerEvent
);

Parameters

[in] hPeerEvent

Handle to the peer collaboration event the peer application will deregister. This handle is obtained with a previous call to PeerCollabRegisterEvent.

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_INVALIDARG
One of the arguments is invalid.

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