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

# GenerateConsoleCtrlEvent(3w)

## NAME

**GenerateConsoleCtrlEvent** (KERNEL32.@)

## SYNOPSIS

BOOL GenerateConsoleCtrlEvent\
  (\
   DWORD *dwCtrlEvent*,\
   DWORD *dwProcessGroupID*\
  )

## DESCRIPTION

GenerateConsoleCtrlEvent \[**KERNEL32**.@\] Simulate a CTRL-C or CTRL-BREAK.

## PARAMS

*dwCtrlEvent* **\[In\]**  Type of event.

*dwProcessGroupID* **\[In\]**  Process group Id to send event to.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE** (and \*should\* \[but doesn't\] set LastError)

## IMPLEMENTATION

Declared in **"wincon.h"**.

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

Debug channel **"console"**.
