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

# GetCommState(3w)

## NAME

**GetCommState** (KERNEL32.@)

## SYNOPSIS

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

## DESCRIPTION

Fills in a device control block with information from a communications device.

## PARAMS

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

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

## RETURNS

**TRUE** on success, **FALSE** if the communication device *handle* is bad etc.

## BUGS

XonChar and XoffChar are not set.

## IMPLEMENTATION

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

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

Debug channel **"comm"**.
