Export (0) Print
Expand All

ITypeInfo::GetRefTypeOfImplType method

If a type description describes a COM class, it retrieves the type description of the implemented interface types. For an interface, GetRefTypeOfImplType returns the type information for inherited interfaces, if any exist.

Syntax


HRESULT GetRefTypeOfImplType(
  [in]  UINT     index,
  [out] HREFTYPE *pRefType
);

Parameters

index [in]

The index of the implemented type whose handle is returned. The valid range is 0 to the cImplTypes field in the TYPEATTR structure.

pRefType [out]

A handle for the implemented interface (if any). This handle can be passed to ITypeInfo::GetRefTypeInfo to get the type description.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

One or more of the arguments is not valid.

TYPE_E_ELEMENTNOTFOUND

Passed index is outside the range 0 to 1 less than the number of function descriptions.

 

Remarks

If the TKIND_DISPATCH type description is for a dual interface, the TKIND_INTERFACE type description can be obtained by calling GetRefTypeOfImplType with an indexof –1, and by passing the returned pRefTypehandle to GetRefTypeInfo to retrieve the type information.

Requirements

IDL

OaIdl.idl

See also

ITypeInfo

 

 

Community Additions

ADD
Show:
© 2015 Microsoft