| DirectX SDK | 
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) 
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.