PEER_COLLAB_EVENT_DATA structure (p2p.h)

The PEER_COLLAB_EVENT_DATA union contains variant data for each possible peer collaboration network event raised on a peer.

Syntax

typedef struct peer_collab_event_data_tag {
  PEER_COLLAB_EVENT_TYPE eventType;
  union {
    PEER_EVENT_WATCHLIST_CHANGED_DATA      watchListChangedData;
    PEER_EVENT_PRESENCE_CHANGED_DATA       presenceChangedData;
    PEER_EVENT_APPLICATION_CHANGED_DATA    applicationChangedData;
    PEER_EVENT_OBJECT_CHANGED_DATA         objectChangedData;
    PEER_EVENT_ENDPOINT_CHANGED_DATA       endpointChangedData;
    PEER_EVENT_PEOPLE_NEAR_ME_CHANGED_DATA peopleNearMeChangedData;
    PEER_EVENT_REQUEST_STATUS_CHANGED_DATA requestStatusChangedData;
  };
} PEER_COLLAB_EVENT_DATA, *PPEER_COLLAB_EVENT_DATA;

Members

eventType

PEER_COLLAB_EVENT_TYPE enumeration value that contains the type of the event whose corresponding data structure appears in the subsequent union arm.

watchListChangedData

A PEER_EVENT_WATCHLIST_CHANGED_DATA structure. This data structure is present when eventType is set to PEER_EVENT_WATCHLIST_CHANGED.

presenceChangedData

A PEER_EVENT_PRESENCE_CHANGED_DATA structure. This data structure is present when eventType is set to PEER_EVENT_ENDPOINT_PRESENCE_CHANGED or PEER_EVENT_MY_PRESENCE_CHANGED.

applicationChangedData

A PEER_EVENT_APPLICATION_CHANGED_DATA structure. This data structure is present when eventType is set to PEER_EVENT_ENDPOINT_APPLICATION_CHANGED or PEER_EVENT_MY_APPLICATION_CHANGED.

objectChangedData

A PEER_EVENT_OBJECT_CHANGED_DATA structure. This data structure is present when eventType is set to PEER_EVENT_ENDPOINT_OBJECT_CHANGED or PEER_EVENT_MY_OBJECT_CHANGED.

endpointChangedData

A PEER_EVENT_ENDPOINT_CHANGED_DATA structure. This data structure is present when eventType is set to PEER_EVENT_ENDPOINT_CHANGED or PEER_EVENT_MY_ENDPOINT_CHANGED.

peopleNearMeChangedData

A PEER_EVENT_PEOPLE_NEAR_ME_CHANGED_DATA structure. This data structure is present when eventType is set to PEER_EVENT_PEOPLE_NEAR_ME_CHANGED.

requestStatusChangedData

A PEER_EVENT_REQUEST_STATUS_CHANGED_DATA structure. This data structure is present when eventType is set to PEER_EVENT_REQUEST_STATUS_CHANGED.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header p2p.h

See also

Peer Collaboration API Structures