MCPcopy Create free account
hub / github.com/SOUI2/soui / QueryInterface

Method QueryInterface

controls.extend/reole/dataobject.cpp:75–89  ·  view source on GitHub ↗

IUnknown::QueryInterface

Source from the content-addressed store, hash-verified

73// IUnknown::QueryInterface
74//
75HRESULT __stdcall CDataObject::QueryInterface(REFIID iid, void **ppvObject)
76{
77 // check to see what interface has been requested
78 if(iid == IID_IDataObject || iid == IID_IUnknown)
79 {
80 AddRef();
81 *ppvObject = this;
82 return S_OK;
83 }
84 else
85 {
86 *ppvObject = 0;
87 return E_NOINTERFACE;
88 }
89}
90
91HGLOBAL DupMem(HGLOBAL hMem)
92{

Callers 3

_InsertFormatTextMethod · 0.45
GetFormatTextMethod · 0.45
ExecuteScriptFunction · 0.45

Calls 1

AddRefFunction · 0.50

Tested by

no test coverage detected