INtime SDK Help
CloseComm (Serial Communications)
INtime SDK v7 > About INtime > Networking and I/O > Serial Communications (COMM) > CloseComm (Serial Communications)

Closes an open Communication driver handle.

Use this function to close handles returned by calls to OpenComm.

BOOLEAN CloseComm(
  COMMHANDLE hObject   // handle to object
);

Parameters

hObject
[in] Handle to an open communication driver.

Return Values

Non-zero
Success.
0 (zero)
Failure. To determine the status, call GetLastRtError.

Status

E_DISCONNECTED
COMM channel is closed

Requirements

Versions Defined in Include Link to
INtime 3.1 intime/rt/include/comm.h comm.h comm.lib
See Also