MCPcopy Create free account
hub / github.com/clangen/musikcube / QueryInterface

Method QueryInterface

src/plugins/wasapiout/WasapiOut.cpp:155–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, VOID **ppvInterface) {
156 if (IID_IUnknown == riid) {
157 this->AddRef();
158 *ppvInterface = (IUnknown*)this;
159 }
160 else if (__uuidof(IMMNotificationClient) == riid) {
161 this->AddRef();
162 *ppvInterface = (IMMNotificationClient*)this;
163 }
164 else {
165 *ppvInterface = nullptr;
166 return E_NOINTERFACE;
167 }
168 return S_OK;
169 }
170
171 /* Callback methods for device-event notifications. */
172

Callers 1

ConfigureMethod · 0.45

Calls 1

AddRefMethod · 0.95

Tested by

no test coverage detected