PEER_EVENT_NODE_CHANGE_DATA structure (p2p.h)

The PEER_EVENT_NODE_CHANGE_DATA structure contains a pointer to the data if a PEER_GRAPH_EVENT_NODE_CHANGE event is triggered.

Syntax

typedef struct peer_event_node_change_data_tag {
  DWORD                 dwSize;
  PEER_NODE_CHANGE_TYPE changeType;
  ULONGLONG             ullNodeId;
  PWSTR                 pwzPeerId;
} PEER_EVENT_NODE_CHANGE_DATA, *PPEER_EVENT_NODE_CHANGE_DATA;

Members

dwSize

Specifies the size of the structure. Should set to the size of PEER_EVENT_NODE_CHANGE_DATA.

changeType

Specifies the new state of the node. Valid values are the following.

Value Meaning
PEER_NODE_CHANGE_CONNECTED
The node is present in the graph.
PEER_NODE_CHANGE_DISCONNECTED
The node is no longer present in the graph.
PEER_NODE_CHANGE_UPDATED
The node has new information, for example, the attributes have changed.

ullNodeId

Specifies the unique ID of the node that has changed.

pwzPeerId

Specifies the peer ID of the node that has changed.

Requirements

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

See also

PEER_GRAPH_EVENT_DATA