Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.GetPlayerOrGroup

Retrieves the client or group identifier for the specified client or group. The number of clients or groups for the application can be determined by calling DirectPlay8Peer.GetCountPlayersAndGroups.

GetPlayerOrGroup(lIndex As Long) As Long

Parts

lIndex
Index of the client or group.

Return Values

Returns the identification of the client or group.

Error Codes

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

DPNERR_INVALIDOBJECT
DPNERR_INVALIDPARAM