INtime SDK Help
GetCommTimeouts (Serial Communications)
INtime SDK v6 > About INtime > Networking and I/O > Serial Communications (COMM) > GetCommTimeouts (Serial Communications)

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

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

Parameters

hComm
[in] Handle to the communications device. OpenComm returns this handle.
lpCommTimeouts
[out] Pointer to a COMMTIMEOUTS structure in which the time-out information is returned.

Return Values

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

Status

E_DISCONNECTED
COMM channel is closed
E_PARAM
Invalid parameter

Remarks

For more information about time-out values for communications devices, see SetCommTimeouts.

Requirements

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