DirectX SDK

IDirectPlay4::GetGroupOwner

The IDirectPlay4::GetGroupOwner method returns the ID of the current owner of the group. This method is only valid in a lobby session.

HRESULT GetGroupOwner(
  DPID idGroup,
  LPDPID lpidOwner
);

Parameters

idGroup
ID of the group whose owner is being requested.
lpidOwner
Address of a variable to receive the ID of the owner.

Return Values

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

DPERR_GENERIC
DPERR_INVALIDGROUP
DPERR_INVALIDPARAMS
DPERR_UNAVAILABLE

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