| 51 | } |
| 52 | |
| 53 | STDMETHODIMP |
| 54 | CLASS_FACTORY::CreateInstance(IUnknown* outer, REFIID refiid, void** obj) { |
| 55 | HRESULT ret = CLASS_E_NOAGGREGATION; |
| 56 | *obj = nullptr; |
| 57 | |
| 58 | // Shell extensions typically don't support aggregation (inheritance) |
| 59 | if(outer == nullptr) { |
| 60 | DIFF_EXT* ext = new DIFF_EXT(); |
| 61 | |
| 62 | if(ext == nullptr) |
| 63 | ret = E_OUTOFMEMORY; |
| 64 | else |
| 65 | ret = ext->QueryInterface(refiid, obj); |
| 66 | } |
| 67 | |
| 68 | return ret; |
| 69 | } |
| 70 | |
| 71 | STDMETHODIMP |
| 72 | CLASS_FACTORY::LockServer(BOOL) { |
nothing calls this directly
no test coverage detected