Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.GetCountPlayersAndGroups

Retrieves the number of peers or groups for the session.

GetCountPlayersAndGroups( _
    lFlags As CONST_DPNENUMCLIENTGROUPFLAGS) As Long

Parts

lFlags
Flag that describes enumeration behavior. You can set one of the following flags of the CONST_DPNENUMCLIENTGROUPFLAGS enumeration.

Error Codes

If the method fails, Err.Number can be set to the following value.

DPNERR_INVALIDFLAGS