Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Server.GetCountGroupMembers

Retrieves the number of players in a group.

GetCountGroupMembers(dpid As Long) As Long

Parts

dpid
Long value that specifies the identification of the group.

Return Values

Returns the number of players in the group.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DPNERR_INVALIDGROUP
DPNERR_INVALIDFLAGS

Remarks

Because player information changes frequently, the required buffer size returned may change between subsequent calls. Check and reallocate the buffer until the method succeeds.