DPMSG_SETPLAYERORGROUPNAME

typedef struct {

DWORD dwType;

DWORD dwPlayerType;

DPID dpId;

DPNAME dpnName;

} DPMSG_SETPLAYERORGROUPNAME, *LPDPMSG_SETPLAYERORGROUPNAME;

Contains information for the DPSYS_SETPLAYERORGROUPNAME system message.

dwType

Identifies the message. This member is always DPSYS_SETPLAYERORGROUPNAME.

dwPlayerType

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

dpId

ID of the player or group whose name changed.

dpnName

Structure containing the new name information for the player or group.

The system sends this message when the name of a player or group has changed. 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::GetGroupName or IDirectPlay2::GetPlayerName method. This message will not be generated if the DPSESSION_NODATAMESSAGES flag is specified in the session description.