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
| 65 | // is NULL. |
| 66 | // |
| 67 | STDAPI 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 |
nothing calls this directly
no test coverage detected