Platform SDK: DirectX

DirectPlay4.SetGroupOwner

The DirectPlay4.SetGroupOwner method changes the owner of a group. This method is only available in a lobby session.

object.SetGroupOwner(GroupId As Long, _
    ownerId As Long) 

Parameters

object
Object expression that resolves to a DirectPlay4 object.
GroupId
ID of the group whose owner is being changed.
ownerId
ID of the player to be set as the owner of the group.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

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

DirectPlay4.GetGroupOwner