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

Sets the time-out parameters for all read and write operations on a specified communications device.

BOOLEAN SetCommTimeouts(
  COMMHANDLE hComm,                  // handle to comm device
  LPCOMMTIMEOUTS lpCommTimeouts      // time-out values
);

Parameters

hComm
[in] Handle to the communications device. OpenComm returns this handle.
lpCommTimeouts
[in] Pointer to a COMMTIMEOUTS structure that contains the new time-out values.

Return Values

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

Status

E_BUSY
An I/O operation is already in progress.
E_DISCONNECTED
COMM channel is closed.
E_PARAM
Invalid parameter.

Requirements

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