[attribute-list]coclass classname {coclass-definitions];
[uuid(. . .), licensed, helpstring("A meaningfulcomment"] coclass MyClass
{. . .};
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.
TYPEFLAG_FLICENSED
coclass, Generating a Type Library With MIDL, Contents of a Type Library, ODL File Syntax, TYPEFLAGS