MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / NonDelegatingQueryInterface

Method NonDelegatingQueryInterface

ThirdParty/ASIO/common/combase.cpp:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76/* QueryInterface */
77
78STDMETHODIMP CUnknown::NonDelegatingQueryInterface(REFIID riid, void ** ppv)
79{
80 CheckPointer(ppv,E_POINTER);
81 ValidateReadWritePtr(ppv,sizeof(PVOID));
82
83 /* We know only about IUnknown */
84
85 if (riid == IID_IUnknown) {
86 GetInterface((LPUNKNOWN) (PNDUNKNOWN) this, ppv);
87 return NOERROR;
88 } else {
89 *ppv = NULL;
90 return E_NOINTERFACE;
91 }
92}
93
94/* We have to ensure that we DON'T use a max macro, since these will typically */
95/* lead to one of the parameters being evaluated twice. Since we are worried */

Callers 1

CreateInstanceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected