The CreateInterfaceDef method creates a new interface definition, and adds the interface to the collection of interfaces that are implemented by the class.
HRESULT CreateInterfaceDef(
VARIANT sObjId,
BSTR Name,
VARIANT sIID,
IInterfaceDef *pIAncestor,
BSTR Flags,
IInterfaceDef **ppIInterfaceDef
);
Parameters
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.
Remarks
When you indicate that an interface is the default interface for a class, you are actually setting the value of the ImplementsOptions annotational property on the Class_Implements_Interface relationship to TRUE. (Remember that every relationship can have annotational properties set on it.)