DirectX SDK

DPMSG_ADDPLAYERTOGROUP

The DPMSG_ADDPLAYERTOGROUP structure contains information for the DPSYS_ADDPLAYERTOGROUP system message. DirectPlay generates this message and sends it to every player when a player is added to a group.

The application can use IDirectPlay4::GetPlayerCaps, IDirectPlay4::GetPlayerName, and IDirectPlay4::GetPlayerData for information about the player involved int his message, or IDirectPlay4::GetGroupName and IDirectPlay4::GetGroupData to get more information about the group involved in this message.

typedef struct{
    DWORD dwType;
    DPID  dpIdGroup;
    DPID  dpIdPlayer;
} DPMSG_ADDPLAYERTOGROUP, FAR *LPDPMSG_ADDPLAYERTOGROUP;
dwType
Identifies the message. This member is DPSYS_ADDPLAYERTOGROUP.
dpIdGroup
ID of the group to which the player was added.
dpIdPlayer
ID of the player that was added to the group.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dplay.h.

See Also

IDirectPlay4::AddPlayerToGroup