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

# IDispatch\_Invoke(3w)

## NAME

**IDispatch\_Invoke** (OLEAUT32.@)

## SYNOPSIS

static HRESULT IDispatch\_Invoke\
  (\
   LPDISPATCH  *iface*,\
   DISPID      *dispIdMember*,\
   REFIID      *riid*,\
   LCID        *lcid*,\
   WORD        *wFlags*,\
   DISPPARAMS\* *pDispParams*,\
   VARIANT\*    *pVarResult*,\
   EXCEPINFO\*  *pExcepInfo*,\
   UINT\*       *puArgErr*\
  )

## DESCRIPTION

Call an object method.

## PARAMS

*iface* **\[In\]**  **IDispatch** interface.

*dispIdMember* **\[In\]**  **DISPID** of the method (from **GetIDsOfNames(3w)**).

*riid* **\[In\]**  Reserved, set to **IID\_NULL**.

*lcid* **\[In\]**  Locale of the type information to convert parameters with.

*wFlags*, **\[In\]**  Kind of method call (**DISPATCH\_** flags from **"oaidl.h"**).

*pDispParams* **\[In\]**  Array of method arguments.

*pVarResult* **\[Out\]**  Destination for the result of the call.

*pExcepInfo* **\[Out\]**  Destination for exception information.

*puArgErr* **\[Out\]**  Destination for bad argument.

## RETURNS

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

**Failure:** See **[DispInvoke(3w)](/DispInvoke/3w.md)** for failure cases.

## NOTES

See **[DispInvoke(3w)](/DispInvoke/3w.md)** and **[IDispatch(3w)](/IDispatch/3w.md)**.

## IMPLEMENTATION

Declared in **"oaidl.h"**.

Implemented in **"dlls/oleaut32/dispatch.c"**.

Debug channel **"ole"**.
