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

# IDispatch\_GetIDsOfNames(3w)

## NAME

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

## SYNOPSIS

static HRESULT IDispatch\_GetIDsOfNames\
  (\
   LPDISPATCH *iface*,\
   REFIID     *riid*,\
   LPOLESTR\*  *rgszNames*,\
   UINT       *cNames*,\
   LCID       *lcid*,\
   DISPID\*    *rgDispId*\
  )

## DESCRIPTION

Convert a methods name and an optional set of parameter names into DISPIDs for passing to **[IDispatch\_Invoke(3w)](/IDispatch_Invoke/3w.md)**.

## PARAMS

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

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

*rgszNames* **\[In\]**  Name to convert.

*cNames* **\[In\]**  Number of names in *rgszNames*.

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

*rgDispId* **\[Out\]**  Destination for converted DISPIDs.

## RETURNS

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

**Failure:** **DISP\_E\_UNKNOWNNAME**, if any of the names is invalid. **DISP\_E\_UNKNOWNLCID** if *lcid* is invalid. Otherwise, an **HRESULT** error code.

## NOTES

This call defers to **ITypeInfo\_GetIDsOfNames(3w)**, using the **ITypeInfo** object contained within the **IDispatch** object. The first member of the names list must be a method name. The names following the method name are the parameters for that method.

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
