Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8LobbyClient.Send

Sends a message to a lobbied application that was launched by this lobby client or was connected by this lobby client.

Microsoft® DirectPlay® transmits the data to the target by calling the target message handler's DirectPlay8LobbyEvent.Receive method.

Send(Target As Long, _
    buffer() As Byte, _
    lBufferSize As Long, _
    lFlags As Long)

Parts

Target
Long value that specifies the target for the message transmission.
buffer()
Buffer that contains the message.
lBufferSize
Size of the message buffer in the buffer() parameter, in bytes. This value must be at least 1 byte and no more than 64 KB.
lFlags
Reserved. Must be 0.

Error Codes

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

DPNERR_INVALIDHANDLE
DPNERR_INVALIDFLAGS
DPNERR_INVALIDPARAM
DPNERR_SENDTOOLARGE

Remarks

If the buffer size is larger than 64 KB, Err.Number is set to DPNERR_SENDTOOLARGE. If the buffer size is set to 0, Err.Number is set to DPNERR_INVALIDPARAM.