Platform SDK: DirectX

DirectPlay4.GetGroupOwner

The DirectPlay4.GetGroupOwner method retrieves the ID of the current owner of the group. This method is only valid in a lobby session.

object.GetGroupOwner(GroupId As Long) As Long 

Parameters

object
Object expression that resolves to a DirectPlay4 object.
GroupId
ID of the group whose owner is being requested.

Return Values

The method returns the DirectPlay ID of the group's owner, as set by the DirectPlay4.SetGroupOwner method.

Error Codes

If the method fails, an error is raised and Err.Number will be set.