DirectX SDK

DirectPlayEnumPlayers.GetType

The DirectPlayEnumPlayers.GetType method ascertains whether an enumerated item is a player or group.

object.GetType(index As Long) As Long 

Parameters

object
Object expression that resolves to a DirectPlayEnumPlayers object.
index
Element of the enumeration object for which to retrieve data.

Return Values

The method returns the type of the enumerated item, either DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER (from the CONST_DPPLAYERTYPEFLAGS enumeration).

Error Codes

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