'interface': interface cannot be both 'restricted' and 'default' in coclass 'class'
The restricted attribute and the default attribute are mutually exclusive.
The following sample generates C3340:
#include <windows.h> [module(name="MyModule")]; [ object, uuid(373a1a4c-469b-11d3-a6b0-00c04f79ae8f) ] __interface IMyIface { HRESULT f1(); }; [ coclass, uuid(373a1a4d-469b-11d3-a6b0-00c04f79ae8f), default(IMyIface), source(IMyIface), restricted(IMyIface) ] class CMyClass { }; void main() { }