Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
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
Return Values
One of the values described in the following table is returned.
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 GetRefTypeOfImplTypewith an indexof –1, and by passing the returned pRefTypehandle to GetRefTypeInfoto retrieve the type information.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Oaidl.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.