The DirectPlaySessionData.SetSessionName method sets the name of a session.
object.SetSessionName(val As String)
If the method fails, an error is raised and Err.Number will be set.