Share via


ITypeInfo::GetRefTypeOfImplType (Windows CE 5.0)

Send Feedback

This method retrieves the type description of implemented interface types for a component object class (coclass) or an inherited interface.

HRESULT GetRefTypeOfImplType(unsigned int index,HREFTYPE FAR* pRefType );

Parameters

  • index
    [in] Index of the implemented type whose handle is returned. The valid range is 0 to the cImplTypes member in the TYPEATTR structure.
  • pRefType
    [out] On return, pointer to a handle for the implemented interface (if any). This handle can be passed to ITypeInfo::GetRefTypeInfo to get the type description.

Return Values

The following table shows the return values for this function.

Value Description
S_OK Success.
TYPE_E_ELEMENTNOTFOUND Passed index is outside the range 0 to 1 less than the number of function descriptions.
E_INVALIDARG One or more of the parameters is invalid.
TYPE_E_IOERROR The function could not read from the file.
TYPE_E_INVDATAREAD Invalid data.
TYPE_E_UNSUPFORMAT The type library has an older format.
TYPE_E_INVALIDSTATE The type library could not be opened.

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 index of –1, and by passing the returned pRefType handle to GetRefTypeInfo to retrieve the type information.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oaidl.h, Oaidl.idl.
Link Library: Oleaut32.lib, Uuid.lib.

See Also

ITypeInfo | ITypeInfo::GetRefTypeInfo | TYPEATTR

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.