include vcomm.inc
VxDCall _VCOMM_CloseComm, <hPort>
or eax, eax
jz error_handler
Closes a communications resource, freeing it for use by other VCOMM clients. Uses the C calling convention.
This service fails if the close property is PORTCLOSE_WAIT and the data remaining in the transmit queue could not be sent.
_VCOMM_GetLastError, _VCOMM_OpenComm