licensed

[attribute-list]coclass classnamecoclass-definitions];

Example

[uuid(. . .), licensed, helpstring( A meaningfulcomment ]   coclass MyClass

{ . . .};

 

Remarks

The licensed attribute indicates that the coclass to which it applies is licensed, and must be instantiated using IClassFactory2.

Licensing is a feature of COM that provides control over object creation. Licensed objects can be created only by clients that are authorized to use them. Licensing is implemented in COM through the IClassFactory2 interface and by support for a license key that can be passed at run time.

Flags

TYPEFLAG_FLICENSED

See Also

coclass, Generating a Type Library With MIDL, Contents of a Type Library, ODL File Syntax, TYPEFLAGS