| 320 | } |
| 321 | |
| 322 | STDMETHODIMP DragTargetAdapter::QueryInterface(REFIID riid, LPVOID* ppv) |
| 323 | { |
| 324 | if (!ppv) |
| 325 | return E_INVALIDARG; |
| 326 | |
| 327 | *ppv = nullptr; |
| 328 | if (riid != IID_IDropTarget && riid != IID_IUnknown) |
| 329 | return E_NOINTERFACE; |
| 330 | |
| 331 | *ppv = static_cast<IDropTarget*>(this); |
| 332 | AddRef(); |
| 333 | return NOERROR; |
| 334 | } |
| 335 | |
| 336 | ULONG DragTargetAdapter::AddRef() |
| 337 | { |
no test coverage detected