MAGIC_DECL DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) { if (rclsid != CLSID_OmegaInterop) return CLASS_E_CLASSNOTAVAILABLE; if (riid != IID_IClassFactory) return E_NOINTERFACE; return CreateClassFactory(ppv); }
bool ff::Module::GetClassFactory(REFGUID classId, IClassFactory **factory) const { const ModuleClassInfo *info = GetClassInfo(classId); if (info != nullptr && info->_factory != nullptr) { assertRetVal(CreateClassFactory(classId, this, info->_factory, factory), false); return true; } return false; }