ITypeInfo2::GetFuncIndexOfMemId

HRESULT GetFuncIndexOfMemId( 
  MEMBERID  memid,           
  INVOKEKIND  invKind,       
  unsigned int  *pFuncIndex  
);
 

Binds to a specific member based on a known DISPID, where the member name is not known (for example, when binding to a default member).

Parameter

memid
Member identifier.
invKind
Invoke kind.
pFuncIndex
Returns an index into the function.

Return Value

The return value obtained from the returned HRESULT is one of the following:

Return value Meaning
S_OK Success.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the arguments is invalid.

Example

ITypeInfo2::GetFuncIndexOfMemId(
MEMID memid, 
INVOKEKIND invKind, 
UINT * pfuncIndex)