Platform SDK: DirectX |
The DirectPlay4.AddGroupToGroup method adds a shortcut to a group to an already existing group. This enables the linked group to be enumerated by the DirectPlay4.GetDPEnumGroupsInGroup method. To remove a group's shortcut from another group, call DirectPlay4.DeleteGroupFromGroup.
object.AddGroupToGroup(ParentGroupId As Long, _ GroupId As Long)
If the method fails, an error is raised and Err.Number may be set to one of the following values:
DPERR_ACCESSDENIED |
DPERR_CONNECTIONLOST |
DPERR_INVALIDGROUP |
You can use this method to place a group inside more than one group.
A DPSYS_ADDGROUPTOGROUP system message is generated to inform players of this change.