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

# SetCommState(3w)

## NAME

**SetCommState** (KERNEL32.@)

## SYNOPSIS

BOOL SetCommState\
  (\
   HANDLE *handle*,\
   LPDCB  *lpdcb*\
  )

## DESCRIPTION

Re-initializes all hardware and control settings of a communications device, with values from a device control block without affecting the input and output queues.

## PARAMS

*handle* **\[In\]**  The communications device.

*lpdcb* **\[Out\]**  The device control block.

## RETURNS

**TRUE** on success, **FALSE** on failure, e.g., if the XonChar is equal to the XoffChar.

## IMPLEMENTATION

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

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

Debug channel **"comm"**.
