MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / QueryInterface

Method QueryInterface

common/baseclasses/dllentry.cpp:74–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74STDMETHODIMP
75CClassFactory::QueryInterface(REFIID riid, __deref_out void **ppv)
76{
77 CheckPointer(ppv, E_POINTER) ValidateReadWritePtr(ppv, sizeof(PVOID));
78 *ppv = NULL;
79
80 // any interface on this object is the object pointer.
81 if ((riid == IID_IUnknown) || (riid == IID_IClassFactory))
82 {
83 *ppv = (LPVOID)this;
84 // AddRef returned interface pointer
85 ((LPUNKNOWN)*ppv)->AddRef();
86 return NOERROR;
87 }
88
89 return ResultFromScode(E_NOINTERFACE);
90}
91
92STDMETHODIMP_(ULONG)
93CClassFactory::AddRef()

Callers 14

CDispMethod · 0.45
COutputQueueMethod · 0.45
IsEqualObjectFunction · 0.45
CopyMethod · 0.45
SendNotifyWindowMethod · 0.45
SendQualityMethod · 0.45
ConnectMethod · 0.45
GetPeerMethod · 0.45
GetPeerSeekingMethod · 0.45
CDeferredCommandMethod · 0.45

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected