---
name: "SetCommTimeouts"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SetCommTimeouts"
---

# SetCommTimeouts(3w)

## NAME

**SetCommTimeouts** (KERNEL32.@)

## SYNOPSIS

BOOL SetCommTimeouts\
  (\
   HANDLE         *hComm*,\
   LPCOMMTIMEOUTS *lptimeouts*\
  )

## DESCRIPTION

Sets the timeouts used when reading and writing data to/from **COMM** ports.

## PARAMS

*hComm* **\[In\]**  handle of **COMM** device.

*lptimeouts* **\[In\]**  pointer to **COMMTIMEOUTS** structure.

ReadIntervalTimeout

**-** converted and passes to Linux(tm) kernel as c\_cc**\[VTIME\]**

ReadTotalTimeoutMultiplier, ReadTotalTimeoutConstant

**-** used in ReadFile to calculate GetOverlappedResult's timeout

WriteTotalTimeoutMultiplier, WriteTotalTimeoutConstant

**-** used in WriteFile to calculate GetOverlappedResult's timeout.

## RETURNS

**TRUE** if the timeouts were set, **FALSE** otherwise.

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/comm.c"**.

Debug channel **"comm"**.
