Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8LobbiedApplication.Send

Sends a message from the lobbied application to the lobby client.

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

Parts

Target
Long value specifying the handle of the lobby client to receive the message.
buffer()
Variable of type BYTE that contains the message buffer.
lBufferSize
Long value that specifies the 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.
lTimeOut
Long value that specifies the number of milliseconds to wait for the Send request to process.
lFlags
Reserved. Must be 0.

Error Codes

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

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.