Skip to content

Latest commit

 

History

History
120 lines (94 loc) · 3.39 KB

nf-p2p-peergroupgeteventdata.md

File metadata and controls

120 lines (94 loc) · 3.39 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:p2p.PeerGroupGetEventData
PeerGroupGetEventData function (p2p.h)
The PeerGroupGetEventData function allows an application to retrieve the data returned by a grouping event.
PeerGroupGetEventData
PeerGroupGetEventData function [Peer Networking]
p2p.peergroupgeteventdata
p2p/PeerGroupGetEventData
p2p\peergroupgeteventdata.htm
p2p
bc742c09-190d-412e-ae1a-f1350b3748f5
12/05/2018
PeerGroupGetEventData, PeerGroupGetEventData function [Peer Networking], p2p.peergroupgeteventdata, p2p/PeerGroupGetEventData
p2p.h
Windows
Windows XP with SP2 [desktop apps only],Windows XP with SP1 with the Advanced Networking Pack forWindows XP
None supported
P2P.lib
P2P.dll
Windows
19H1
PeerGroupGetEventData
p2p/PeerGroupGetEventData
c++
APIRef
kbSyntax
DllExport
P2P.dll
PeerGroupGetEventData

PeerGroupGetEventData function

-description

The PeerGroupGetEventData function allows an application to retrieve the data returned by a grouping event.

-parameters

-param hPeerEvent [in]

Handle obtained from a previous call to PeerGroupRegisterEvent. This parameter is required.

-param ppEventData [out]

Pointer to a PEER_GROUP_EVENT_DATA structure that contains data about the peer event. This data structure must be freed after use with PeerFreeData. This parameter is required.

-returns

Returns S_OK if the operation succeeds. Otherwise, the function returns one of the following values.

Return code Description
E_INVALIDARG
One of the parameters is not valid.
PEER_S_NO_EVENT_DATA
The call is successful, but there is no event data available.
 

Cryptography-specific errors can be returned from the Microsoft RSA Base Provider. These errors are prefixed with CRYPT_* and defined in Winerror.h.

-remarks

When an event occurs for which a peer has requested notification, the corresponding peer event handle is signaled. The peer calls this method until PEER_GROUP_EVENT_DATA structures are retrieved. Each data structure contains the following two key pieces of data:

  • The registration associated with a peer event.
  • The actual data for a peer event.

-see-also

PEER_GROUP_EVENT_DATA

PeerFreeData

PeerGroupRegisterEvent