DirectX SDK

IDirectPlay4::GetGroupParent

The IDirectPlay4::GetGroupParent method returns the ID of the parent of the group.

HRESULT GetGroupParent(
  DPID idGroup,
  LPDPID lpidParent
);

Parameters

idGroup
ID of the group whose parent is being requested.
lpidParent
Address of a variable to receive the ID of the parent group. If this method returns a parent ID of 0, the group is a root group.

Return Values

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

DPERR_INVALIDGROUP
DPERR_INVALIDPARAMS

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::CreateGroupInGroup