IDirectPlay4::SetGroupOwner

IDirectPlay4 Interface

Changes the owner of a group. This method is only available in a lobby session. It generates a DPMSG_SETGROUPOWNER system message.

Syntax

HRESULT SetGroupOwner(
  DPID idGroup,
  DPID idOwner
  );

Parameters

idGroup
ID of the group whose owner is being changed.
idOwner
DPID of the player to be set as the owner of the group.

Return Value

Returns DP_OK if successful, or one of the following error values otherwise:
DPERR_CONNECTIONLOST
DPERR_GENERIC
DPERR_INVALIDGROUP
DPERR_INVALIDPLAYER
DPERR_UNAVAILABLE

This method returns DPERR_UNAVAILABLE if the session is not a lobby session.

See Also

IDirectPlay4::GetGroupOwner, DPMSG_SETGROUPOWNER


Top of Page Top of Page
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.