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

# WerReportSubmit(3w)

## NAME

**WerReportSubmit** (WER.@)

## SYNOPSIS

HRESULT WerReportSubmit\
  (\
   HREPORT            *hreport*,\
   WER\_CONSENT        *consent*,\
   DWORD              *flags*,\
   PWER\_SUBMIT\_RESULT *presult*\
  )

## DESCRIPTION

Ask the user for permission and send the error report then kill or restart the application, when requested.

## PARAMS

*hreport* **\[In\]**  error reporting handle to send.

*consent* **\[In\]**  current transmit permission.

*flags* **\[In\]**  flag to select dialog, transmission snd restart options.

*presult* **\[Out\]**  ptr, where the transmission result should be saved.

## RETURNS

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

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

## IMPLEMENTATION

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

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

Debug channel **"wer"**.
