_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