ICreateTypeInfo::AddRefTypeInfo method (oaidl.h)
Adds a type description to those referenced by the type description being created.
Syntax
HRESULT AddRefTypeInfo(
[in] ITypeInfo *pTInfo,
[in] HREFTYPE *phRefType
);
Parameters
[in] pTInfo
The type description to be referenced.
[in] phRefType
The handle that this type description associates with the referenced type information.
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
The second parameter returns a pointer to the handle of the added type information. If AddRefTypeInfo has been called previously for the same type information, the index that was returned by the previous call is returned in phRefType. If the referenced type description is in the type library being created, its type information can be obtained by calling IUnknown::QueryInterface(IID_ITypeInfo, ...) on the ICreateTypeInfo interface of that type description.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oaidl.h |