Edit

Share via


PEER_MEMBER_CHANGE_TYPE enumeration (p2p.h)

The PEER_MEMBER_CHANGE_TYPE enumeration defines the set of possible peer group membership and presence states for a peer.

Syntax

typedef enum peer_member_change_type_tag {
  PEER_MEMBER_CONNECTED = 1,
  PEER_MEMBER_DISCONNECTED = 2,
  PEER_MEMBER_UPDATED = 3,
  PEER_MEMBER_JOINED = 4,
  PEER_MEMBER_LEFT = 5
} PEER_MEMBER_CHANGE_TYPE;

Constants

 
PEER_MEMBER_CONNECTED
Value: 1
A member is connected to a peer group.
PEER_MEMBER_DISCONNECTED
Value: 2
A member is disconnected from a peer group.
PEER_MEMBER_UPDATED
Value: 3
A member has updated information (for example, a new address) within a peer group.
PEER_MEMBER_JOINED
Value: 4
New membership information is published for a group member. The peer name of a peer group member is obtained from the pwzIdentity field of the PEER_EVENT_MEMBER_CHANGE_DATA structure. New membership information is published in one of the following three scenarios:


  • An administrator calls PeerGroupIssueCredentials with the PEER_GROUP_STORE_CREDENTIALS flag set.

  • A user connects to a peer group for the first time, and the PEER_MEMBER_DATA_OPTIONAL flag is not set.

  • A peer group member performs an operation (for example, issuing an invitation or credentials, or publishing a record), but membership information for the peer group member does not exist in the group.

PEER_MEMBER_LEFT
Value: 5
This peer event does not exist in the Peer Grouping Infrastructure v1.0, and must not be used.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only],Windows XP with SP1with the Advanced Networking Pack forWindows XP
Minimum supported server None supported
Header p2p.h

See also

PEER_EVENT_MEMBER_CHANGE_DATA