_VCOMM_GetLastError

include vcomm.inc

VxDCall _VCOMM_GetLastError, <hPort>
mov     dwError, eax
 

Gets the error for the last VCOMM client VxD service called for the given port. Uses the C calling convention. This is an asynchronous service.

hPort
Handle of a communications resource.

The following error values are defined:

Value Meaning
IE_BADID A bad handle was used as a parameter.
IE_BAUDRATE The specified baud rate is not supported. This error is specific to the _VCOMM_SetCommState service.
IE_BYTESIZE The specified number of data bits is not supported. This error is specific to the _VCOMM_SetCommState service.
IE_CHARWAITING A character specified in a previous call to the _VCOMM_TransmitCommChar service is waiting to be transmitted. This error is specific to the _VCOMM_TransmitCommChar service.
IE_DEFAULT Some general error occurred.
IE_EXTINVALID The port driver does not support the specified extended function. This error is specific to the _VCOMM_EscapeCommFunction service.
IE_TIMEOUT The port could not be closed because the remaining data in the transmit queue could not be sent. This error is specific to the _VCOMM_CloseComm service.

See Also

_VCOMM_CloseComm, _VCOMM_EscapeCommFunction, _VCOMM_SetCommState, _VCOMM_TransmitCommChar, _VCOMM_WriteComm