Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceServer8.GetTransmitTargets

Retrieves the transmit targets, if any, of the voice stream for a player in a session.

GetTransmitTargets(playerSourceID As Long, _
    lFlags As Long) As Long()

Parts

playerSourceID
Long value specifying the DVID of the user or group whose target is returned.
lFlags
Reserved. Must be 0.

Return Values

Returns an array of Long values containing the DVIDs of the of the transmit targets, if any, of the server's voice stream.

Error Codes

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

DVERR_NOTALLOWED
DVERR_INVALIDPARAM
DVERR_INVALIDPOINTER
DVERR_BUFFERTOOSMALL
DVERR_NOTCONNECTED
DVERR_NOTINITIALIZED
DVERR_INVALIDFLAGS

Remarks

This method can be used only if the DVSESSION_SERVERCONTROLTARGET flag is specified on creation of the DirectPlay Voice session. If the flag is not specified, this method returns DVERR_NOTALLOWED.