MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / DllGetClassObject

Function DllGetClassObject

src/Tools/ThumbnailProvider/ClassFactory.cpp:89–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void** ppv)
90{
91 if (NULL == ppv) {
92 return E_INVALIDARG;
93 }
94
95 if (!IsEqualCLSID(CLSID_SampleThumbnailProvider, rclsid)) {
96 return CLASS_E_CLASSNOTAVAILABLE;
97 }
98
99 CClassFactory* pcf;
100 HRESULT hr;
101
102 pcf = new CClassFactory();
103 if (NULL == pcf) {
104 return E_OUTOFMEMORY;
105 }
106
107 hr = pcf->QueryInterface(riid, ppv);
108 pcf->Release();
109 return hr;
110}

Callers

nothing calls this directly

Calls 2

QueryInterfaceMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected