DirectX SDK

DirectPlay4.CancelPriority

The DirectPlay4.CancelPriority method cancels all messages of a particular priority or range of priorities that are still in the send queue. CancelPriority applies only to asynchronous messages.

Messages that have left the message queue and are partially sent cannot be canceled. A message sent to a group cannot be canceled after it has been sent to at least one member of the group.

object.CancelPriority(minPriority As Long, _
    maxPriority As Long) 

Parameters

object
Object expression that resolves to a DirectPlay4 object.
minPriority
Minimum priority in the range to be canceled.
maxPriority
Maximum priority in the range to be canceled. Must be greater than minPriority.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DPERR_INVALIDFLAGS
DPERR_INVALIDPARAMS

See Also

DirectPlay4.SendEx, DirectPlay4.Send, DirectPlay4.CancelMessage