_VCOMM_CloseComm

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.

hPort
Handle of a communications resource.

This service fails if the close property is PORTCLOSE_WAIT and the data remaining in the transmit queue could not be sent.

See Also

_VCOMM_GetLastError, _VCOMM_OpenComm