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.
_VCOMM_GetLastError