Platform SDK: DirectX

IDirectPlay4::DeleteGroupFromGroup

The IDirectPlay4::DeleteGroupFromGroup method removes a shortcut to a group previously added with the IDirectPlay4::AddGroupToGroup method from a group. Deleting the shortcut does not destroy the group.

HRESULT DeleteGroupFromGroup(
  DPID idParentGroup,
  DPID idGroup
);

Parameters

idParentGroup
ID of the group containing the shortcut to be deleted. Can be any valid group ID.
idGroup
ID of the group to delete. Can be any valid group ID.

Return Values

Returns DP_OK if successful, or one of the following error messages otherwise:

DPERR_ACCESSDENIED
DPERR_CONNECTIONLOST
DPERR_INVALIDGROUP

Remarks

A DPMSG_DELETEGROUPFROMGROUP system message is generated to inform players of this change.

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.
  Import Library: Use dplayx.lib.

See Also

IDirectPlay4::AddGroupToGroup, DPMSG_DELETEGROUPFROMGROUP