Platform SDK: DirectX

DirectPlaySessionData.SetMaxPlayers

The DirectPlaySessionData.SetMaxPlayers method sets the greatest number of players who can join a session.

object.SetMaxPlayers(val As Long)

Parameters

object
Object expression that resolves to a DirectPlaySessionData object.
val
Maximum number of players. If 0, there is no maximum.

Error Codes

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