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

# ITypeInfo2\_GetVarIndexOfMemId(3w)

## NAME

**ITypeInfo2\_GetVarIndexOfMemId** (OLEAUT32.@)

## SYNOPSIS

static HRESULT ITypeInfo2\_GetVarIndexOfMemId\
  (\
   ITypeInfo2\* *iface*,\
   MEMBERID    *memid*,\
   UINT\*       *pVarIndex*\
  )

## PARAMS

*iface* **\[In\]**  The TypeInfo in which to find the variable.

*memid* **\[In\]**  The member Id for the variable.

*pVarIndex* **\[Out\]**  The index of the variable.

## DESCRIPTION

Gets the index of a variable given its member id.

## RETURNS

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

**Failure:** One of **E\_OUTOFMEMORY** or **E\_INVALIDARG**.

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
