MCPcopy Create free account
hub / github.com/bumptop/BumpTop / QueryInterface

Method QueryInterface

trunk/win/Source/BT_VideoRender.cpp:184–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184HRESULT 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
210HRESULT STDMETHODCALLTYPE AllocatorPresenter::StartPresenting(DWORD_PTR dwUserID)
211{

Callers 11

createLinkMethod · 0.45
VideoRenderMethod · 0.45
InitVMRMethod · 0.45
invokeMenuMethod · 0.45
getContextMenuMethod · 0.45
createShortcutMethod · 0.45
getShortcutTargetMethod · 0.45
SHLoadLibraryFromItemFunction · 0.45
CreateLinkMethod · 0.45
writeUrlToDirFunction · 0.45
ComPointerMethod · 0.45

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected