| DirectX SDK | 
The DirectPlay4.SetGroupName method sets the name of a group after it has been created. Only the computer that created the group can set the name of the group.
object.SetGroupName(GroupId As Long, _
    friendlyName As String, _
    formalName As String, _
    flags As CONST_DPSETFLAGS) 
If the method fails, an error is raised and Err.Number may be set to one of the following values:
| DPERR_CONNECTIONLOST | 
| DPERR_INVALIDGROUP | 
| DPERR_INVALIDOBJECT | 
| DPERR_INVALIDPARAMS | 
| DPERR_INVALIDPLAYER | 
A DPSYS_SETPLAYERORGROUPNAME system message will be sent to all the other players notifying them of the change unless DPSESSION_NODATAMESSAGES is set in the session description.
DirectPlay4.GetGroupLongName, DirectPlay4.GetGroupShortName, DirectPlay4.Send