MCPcopy Create free account
hub / github.com/audiorouterdev/audio-router / QueryInterface

Method QueryInterface

audio-router-gui/dialog_array.cpp:746–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746HRESULT dialog_array::session_notifications::QueryInterface(REFIID riid, void **ppvInterface)
747{
748 if(IID_IUnknown == riid)
749 {
750 this->AddRef();
751 *ppvInterface = (IUnknown*)this;
752 }
753 else if(__uuidof(IAudioSessionNotification) == riid)
754 {
755 this->AddRef();
756 *ppvInterface = (IAudioSessionNotification*)this;
757 }
758 else
759 {
760 *ppvInterface = NULL;
761 return E_NOINTERFACE;
762 }
763
764 return S_OK;
765}
766
767ULONG dialog_array::session_notifications::AddRef()
768{

Callers 1

Calls 1

AddRefMethod · 0.95

Tested by

no test coverage detected