DirectX SDK

DirectPlaySessionData.GetMaxPlayers

The DirectPlaySessionData.GetMaxPlayers method retrieves the greatest number of players allowed to join the session.

object.GetMaxPlayers() As Long

Parameters

object
Object expression that resolves to a DirectPlaySessionData object.

Return Values

The method returns the maximum number of players, or 0 if there is no maximum.

Error Codes

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