PortClearError


cCall _VCOMM_ClearCommError, <hPort, <OFFSET32 cmst>, \
    <OFFSET32 dwErrors>>
or      eax, eax
jz      error_handler

Called by the _VCOMM_ClearCommError service to reenable a port after a communications error. Uses the C calling convention. Must be callable at interrupt time.

hPort

Address of a _PORTINFORMATION structure returned by the PortOpen function.

cmst

Address of a _COMSTAT structure that receives information about the state of the communications channel. Can be NULL.

dwErrors

Address of a 32-bit variable that receives communications errors. For a list of communications errors, see the _VCOMM_ClearCommError service.

See also _COMSTAT, _PORTINFORMATION, PortOpen, _VCOMM_ClearCommError