int CloseComm(idComDev) | ||||
int idComDev; | /* device to close, */ |
The CloseComm function closes the specified communications device and frees any memory allocated for the device's transmission and receiving queues. All characters in the output queue are sent before the communications device is closed.
idComDev
Specifies the device to be closed. The OpenComm function returns this value.
The return value is zero if the function is successful. Otherwise, it is less than zero.