source

[source [, optional-attributes]] statement-type statement-name definitions};

Example

[default, source] dispinterface DIMyFaceAdviseSink;

[source]interface IMyFaceAdviseSink;

 

Remarks

The source attribute indicates that a member of a coclass, property, or method is a source of events. For a member of a coclass14DDFHT, this attribute means that the member is called rather than implemented.

On a property or method, the source attribute indicates that the member returns an object or VARIANT that is a source of events. The object implements IConnectionPointContainer.

Flags

IMPLTYPEFLAG_FSOURCE, VARFLAG_SOURCE, FUNCFLAG_SOURCE

See Also

TYPEFLAGS, ODL File Syntax, ODL File Example, Generating a Type Library With MIDL, Differences Between MIDL and MKTYPLIB