| 182 | } |
| 183 | |
| 184 | HRESULT STDMETHODCALLTYPE AllocatorPresenter::QueryInterface(const IID & riid, void ** ppvObject) |
| 185 | { |
| 186 | if (!ppvObject) |
| 187 | return E_POINTER; |
| 188 | |
| 189 | if (IID_IVMRSurfaceAllocator9 == riid) |
| 190 | { |
| 191 | IVMRSurfaceAllocator9 * obj = dynamic_cast<IVMRSurfaceAllocator9 *>(this); |
| 192 | obj->AddRef(); |
| 193 | *ppvObject = obj; |
| 194 | return S_OK; |
| 195 | } |
| 196 | else if (IID_IVMRImagePresenter9 == riid) |
| 197 | { |
| 198 | IVMRImagePresenter9 * obj = dynamic_cast<IVMRImagePresenter9 *>(this); |
| 199 | obj->AddRef(); |
| 200 | *ppvObject = obj; |
| 201 | return S_OK; |
| 202 | } |
| 203 | else |
| 204 | { |
| 205 | *ppvObject = NULL; |
| 206 | return E_NOINTERFACE; |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | HRESULT STDMETHODCALLTYPE AllocatorPresenter::StartPresenting(DWORD_PTR dwUserID) |
| 211 | { |
no test coverage detected