PeerCollabGetEventData function (p2p.h)

The PeerCollabGetEventData function obtains the data associated with a peer collaboration event raised on the peer.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerCollabGetEventData(
  [in]  HPEEREVENT              hPeerEvent,
  [out] PPEER_COLLAB_EVENT_DATA *ppEventData
);

Parameters

[in] hPeerEvent

The peer collaboration network event handle obtained by a call to PeerCollabRegisterEvent.

[out] ppEventData

Pointer to a list of PEER_COLLAB_EVENT_DATA structures that contain data about the peer collaboration network event. These data structures must be freed after use by calling PeerFreeData.

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.
PEER_S_NO_EVENT_DATA
The event data is not present.

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