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

# SetErrorInfo(3w)

## NAME

**SetErrorInfo** (OLE32.@)

## SYNOPSIS

HRESULT SetErrorInfo\
  (\
   ULONG       *dwReserved*,\
   IErrorInfo\* *perrinfo*\
  )

## DESCRIPTION

Sets the error information object for the current thread.

## PARAMS

*dwReserved* **\[In\]**  Reserved. Must be zero.

*perrinfo* **\[In\]**  Error information object.

## RETURNS

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

**Failure:** **E\_INVALIDARG** if *dwReserved* is not zero.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/ole32/errorinfo.c"**.

Debug channel **"ole"**.
