| 87 | |
| 88 | |
| 89 | STDAPI 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 | } |
nothing calls this directly
no test coverage detected