IDirectPlay4::SetGroupOwner
IDirectPlay4 InterfaceChanges 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
Top of Page
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.