include vcomm.inc
VxDCall _VCOMM_ReadComm, <hPort, <OFFSET32 achBuffer>, \
cchRequested, <OFFSET32 cchReceived>>
or eax, eax
jz error_handler
Reads characters from the receive queue for the specified port, and returns immediately. Uses the C calling convention. This is an asynchronous service.
If a communications error has occurred, the service returns TRUE, but doesn't read any characters. In this case, call _VCOMM_ClearCommError.
_VCOMM_ClearCommError, _VCOMM_GetLastError