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

# SetupComm(3w)

## NAME

**SetupComm** (KERNEL32.@)

## SYNOPSIS

BOOL SetupComm\
  (\
   HANDLE *handle*,\
   DWORD  *insize*,\
   DWORD  *outsize*\
  )

## DESCRIPTION

Called after CreateFile to hint to the communication resource to use specified sizes for input and output buffers rather than the default values.

## PARAMS

*handle* **\[In\]**  The just created communication resource *handle*.

*insize* **\[In\]**  The suggested size of the communication resources input buffer in bytes.

*outsize* **\[In\]**  The suggested size of the communication resources output buffer in bytes.

## RETURNS

**TRUE** if successful, **FALSE** if the communications resource *handle* is bad.

## BUGS

Stub.

## IMPLEMENTATION

Declared in **"advpub.h"**.

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

Debug channel **"comm"**.
