Platform SDK: DirectX

DirectPlaySessionData.GetCurrentPlayers

The DirectPlaySessionData.GetCurrentPlayers method retrieves the current number of players in the session.

object.GetCurrentPlayers() As Long

Parameters

object
Object expression that resolves to a DirectPlaySessionData object.

Return Values

The method returns the current number of players.

Error Codes

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