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

# PurgeComm(3w)

## NAME

**PurgeComm** (KERNEL32.@)

## SYNOPSIS

BOOL PurgeComm\
  (\
   HANDLE *handle*,\
   DWORD  *flags*\
  )

## DESCRIPTION

Terminates pending operations and/or discards buffers on a communication resource.

## PARAMS

*handle* **\[In\]**  The communication resource to be purged.

*flags* **\[In\]**  Flags for clear pending/buffer on input/output.

## RETURNS

**TRUE** on success and **FALSE** if the communications *handle* is bad.

## IMPLEMENTATION

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

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

Debug channel **"comm"**.
