Add a player to an existing group. A player can be a member of multiple groups. Groups cannot be added to other groups using this API (see IDirectPlay3::AddGroupToGroup). An application can add any player to any group (including players and groups that weren't created locally).
HRESULT AddPlayerToGroup(
DPID idGroup,
DPID idPlayer
);
Returns DP_OK if successful, or one of the following error values otherwise:
This method returns DPERR_INVALIDPLAYER if the player DPID is not a player id or if the id is not for a local player.
A DPMSG_ADDPLAYERTOGROUP system message will be generated and sent to all the other players.
IDirectPlay3::CreateGroup, IDirectPlay3::DeletePlayerFromGroup, DPMSG_ADDPLAYERTOGROUP
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.