HRESULT STDMETHODCALLTYPE IDeskDisplayAdapter_QueryInterface(PDESKDISPLAYADAPTER This, REFIID iid, PVOID *pvObject) { *pvObject = NULL; if (IsEqualIID(iid, &IID_IShellPropSheetExt) || IsEqualIID(iid, &IID_IUnknown)) { *pvObject = impl_to_interface(This, IShellPropSheetExt); } else if (IsEqualIID(iid, &IID_IShellExtInit)) { *pvObject = impl_to_interface(This, IShellExtInit); } else if (IsEqualIID(iid, &IID_IClassFactory)) { *pvObject = impl_to_interface(This, IClassFactory); } else { DPRINT1("IDeskDisplayAdapter::QueryInterface(%p,%p): E_NOINTERFACE\n", iid, pvObject); return E_NOINTERFACE; } IDeskDisplayAdapter_AddRef(This); return S_OK; }
VOID IDeskDisplayAdapter_InitIface(PDESKDISPLAYADAPTER This) { This->lpIShellPropSheetExtVtbl = &efvtIShellPropSheetExt; This->lpIShellExtInitVtbl = &efvtIShellExtInit; This->lpIClassFactoryVtbl = &efvtIClassFactory; IDeskDisplayAdapter_AddRef(This); }
static ULONG STDMETHODCALLTYPE IDeskDisplayAdapter_IShellExtInit_AddRef(IShellExtInit* iface) { PDESKDISPLAYADAPTER This = interface_to_impl(iface, IShellExtInit); return IDeskDisplayAdapter_AddRef(This); }
static ULONG STDMETHODCALLTYPE IDeskDisplayAdapter_IClassFactory_AddRef(IClassFactory* iface) { PDESKDISPLAYADAPTER This = interface_to_impl(iface, IClassFactory); return IDeskDisplayAdapter_AddRef(This); }