Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies an inherited interface, or an interface implemented by a component object class (coclass).
Syntax
HRESULT AddImplType(
[in] UINT index,
[in] HREFTYPE hRefType
);
Parameters
[in] index
The index of the implementation class to be added. Specifies the order of the type relative to the other type.
[in] hRefType
A handle to the referenced type description obtained from the AddRefType description.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
One or more of the arguments is not valid. |
|
Insufficient memory to complete the operation. |
|
Cannot write to the destination. |
|
Insufficient memory to complete the operation. |
|
Type mismatch. |
Remarks
To specify an inherited interface, use index = 0. For a dispinterface with Syntax 2, call ICreateTypeInfo::AddImplType twice, once with index = 0 for the inherited IDispatch and once with index = 1 for the interface that is being wrapped. For a dual interface, call ICreateTypeInfo::AddImplType with index = -1 for the TKIND_INTERFACE type information component of the dual interface.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oaidl.h |