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

# GetErrorInfo(3w)

## NAME

**GetErrorInfo** (OLE32.@)

## SYNOPSIS

HRESULT GetErrorInfo\
  (\
   ULONG        *dwReserved*,\
   IErrorInfo\*\* *pperrinfo*\
  )

## DESCRIPTION

Retrieves the error information object for the current thread.

## PARAMS

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

*pperrinfo* **\[Out\]**  . Address where error information object will be stored on return.

## RETURNS

**Success:** **S\_OK** if an error information object was set for the current thread. **S\_FALSE** if otherwise.

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

## NOTES

This function causes the current error information object for the thread to be cleared if one was set beforehand.

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
