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

# WerReportCreate(3w)

## NAME

**WerReportCreate** (WER.@)

## SYNOPSIS

HRESULT WerReportCreate\
  (\
   PCWSTR                  *eventtype*,\
   WER\_REPORT\_TYPE         *reporttype*,\
   PWER\_REPORT\_INFORMATION *reportinfo*,\
   HREPORT\*                *phandle*\
  )

## DESCRIPTION

Create an error report in memory and return a related **HANDLE**.

## PARAMS

*eventtype* **\[In\]**  a name for the event type.

*reporttype* **\[In\]**  what type of report should be created.

*reportinfo* **\[In\]**  **NULL** or a pointer to a struct with some detailed information.

*phandle* **\[Out\]**  ptr, where the resulting handle should be saved.

## RETURNS

**Success:** **S\_OK**

**Failure:** A **HRESULT** error code.

## NOTES

The event type must be registered at Microsoft(tm). Predefined types are **"APPCRASH"** as the default on Windows, **"Crash32"** and **"Crash64"**

## IMPLEMENTATION

Declared in **"werapi.h"**.

Implemented in **"dlls/wer/main.c"**.

Debug channel **"wer"**.
