Поделиться через


ICreateTypeInfo::AddImplType (Windows CE 5.0)

Send Feedback

This method specifies an inherited interface.

HRESULT AddImplType( unsigned intindex,HREFTYPE hRefType);

Parameters

  • index
    [in] Index of the implementation class to be added. Specifies the order of the type relative to the other type.
  • hRefType
    [in] Handle to the referenced type description obtained from ICreateTypeInfo::AddRefTypeInfo.

Return Values

The following table shows the return values for this function.

Value Description
S_OK Success.
STG_E_INSUFFICIENTMEMORY Out of memory.
E_OUTOFMEMORY Out of memory.
E_ACCESSDENIED Cannot write to the destination.
TYPE_E_WRONGTYPEKIND Type mismatch.

Remarks

To specify an inherited interface, use index = 0. For a dispinterface with Syntax 2, call AddImplType twice, once with nindex = 0 for the inherited IDispatch and once with nindex = 1 for the interface that is being wrapped.

For a dual interface, call AddImplType with nindex = 1 for the TKIND_INTERFACE type information component of the dual interface.

Requirements

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

See Also

ICreateTypeInfo | dispinterface | ICreateTypeInfo::AddRefTypeInfo | IDispatch

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.