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

# GetCommMask(3w)

## NAME

**GetCommMask** (KERNEL32.@)

## SYNOPSIS

BOOL GetCommMask\
  (\
   HANDLE  *handle*,\
   LPDWORD *evtmask*\
  )

## DESCRIPTION

Obtain the events associated with a communication device that will cause a call WaitCommEvent to return.

## PARAMS

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

*evtmask* **\[Out\]**  The events which cause WaitCommEvent to return.

## RETURNS

**TRUE** on success, fail on bad device *handle* etc.

## IMPLEMENTATION

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

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

Debug channel **"comm"**.
