Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Client.GetSendQueueInfo

Used by the application to monitor the size of the send queue. Microsoft® DirectPlay® does not send messages faster than the receiving computer can process them. As a result, if the sending computer is sending faster than the receiver can receive, messages accumulate in the sender's queue. If the application registers that the send queue is growing too large, it should decrease the rate at which messages are sent.

GetSendQueueInfo(lNumMsgs As Long, _
    lNumBytes As Long, _
    [lFlags As CONST_DPNGETSENDQUEUEINFO])

Parts

lNumMsgs
Number of messages currently queued.
lNumBytes
Amount of data, in bytes, of the messages currently queued.
lFlags
Set this parameter to one of the CONST_DPNGETSENDQUEUEINFO values to get the send-queue information for a particular priority level. Set this flag to zero to get the combined send-queue information.

Error Codes

If the method fails, Err.Number can be set to the following value.

DPNERR_INVALIDPARAM