Platform SDK: DirectX

DirectPlay4.AddGroupToGroup

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) 

Parameters

object
Object expression that resolves to a DirectPlay4 object.
ParentGroupId
ID of the group to which the shortcut will be added. Can be any valid group ID.
GroupId
ID of the group whose shortcut will be added. Can be any valid group ID.

Error Codes

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

Remarks

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.

See Also

DirectPlay4.CreateGroupInGroup