DPMSG_SETPLAYERORGROUPDATA

typedef struct {

DWORD dwType;

DWORD dwPlayerType;

DPID dpId;

LPVOID lpData;

DWORD dwDataSize;

} DPMSG_SETPLAYERORGROUPDATA, *LPDPMSG_SETPLAYERORGROUPDATA;

Contains information for the DPSYS_SETPLAYERORGROUPDATA system message.

dwType

Identifies the message. This member is always DPSYS_SETPLAYERORGROUPDATA.

dwPlayerType

Identifies whether the message applies to a player (DPPLAYERTYPE_PLAYER) or a group (DPPLAYERTYPE_GROUP).

dpId

ID of the player or group whose data changed.

lpData

Address of an application-specific block of data.

dwDataSize

Size of the data contained in the buffer referenced by lpData.

The system sends this message when an application changes remote player or group data. It is not necessary for the application to save the data from this message; it can be retrieved at any time by using the IDirectPlay2::GetGroupData or IDirectPlay2::GetPlayerData method with the DPGET_REMOTE flag. This message will not be generated if the DPSESSION_NODATAMESSAGES flag is specified in the session description.