_VCOMM_PurgeComm

include vcomm.inc

VxDCall _VCOMM_PurgeComm, <hPort, dwQueueType>
or      eax, eax
jz      error_handler
 

Discards information in the receive or transmit queue, and cancels pending read or write operations. Uses the C calling convention.

hPort
Handle of a communications resource.
dwQueueType
The queue to purge: 0 for transmit queue, 1 for receive queue.

See Also

_VCOMM_GetLastError