Platform SDK: DirectX

DirectPlay4.GetGroupParent

The DirectPlay4.GetGroupParent method retrieves the ID of the group containing a group.

object.GetGroupParent(GroupId As Long) As Long

Parameters

object
Object expression that resolves to a DirectPlay4 object.
GroupId
ID of the group whose parent is being requested.

Return Values

The method returns the DirectPlay ID of the parent, if the group was created within another group by using DirectPlay4.CreateGroupInGroup. If the group was not created in another group, the method returns 0.

Error Codes

If the method fails, an error is raised and Err.Number will be set.

See Also

DirectPlay4.CreateGroupInGroup