MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / DllGetClassObject

Function DllGetClassObject

GTE_Win/dllmain.cpp:67–82  ·  view source on GitHub ↗

FUNCTION: DllGetClassObject PURPOSE: Create the class factory and query to the specific interface. PARAMETERS: rclsid - The CLSID that will associate the correct data and code. riid - A reference to the identifier of the interface that the caller is to use to communicate with the class object. ppv - The address of a pointer variable that receives the interface pointer requested in riid. Upon suc

Source from the content-addressed store, hash-verified

65// is NULL.
66//
67STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void** ppv)
68{
69 HRESULT hr = CLASS_E_CLASSNOTAVAILABLE;
70
71 if (IsEqualCLSID(CLSID_GerberThumbnailProvider, rclsid)) {
72 hr = E_OUTOFMEMORY;
73
74 ClassFactory* pClassFactory = new ClassFactory();
75 if (pClassFactory) {
76 hr = pClassFactory->QueryInterface(riid, ppv);
77 pClassFactory->Release();
78 }
79 }
80
81 return hr;
82}
83
84//
85// FUNCTION: DllCanUnloadNow

Callers

nothing calls this directly

Calls 2

QueryInterfaceMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected