mshtml: Added PluginHost's IBindHost stub implementation.
This commit is contained in:
parent
dc062aee5a
commit
4479194e48
|
@ -126,6 +126,9 @@ static HRESULT WINAPI PHClientSite_QueryInterface(IOleClientSite *iface, REFIID
|
||||||
}else if(IsEqualGUID(&IID_IOleControlSite, riid)) {
|
}else if(IsEqualGUID(&IID_IOleControlSite, riid)) {
|
||||||
TRACE("(%p)->(IID_IOleControlSite %p)\n", This, ppv);
|
TRACE("(%p)->(IID_IOleControlSite %p)\n", This, ppv);
|
||||||
*ppv = &This->IOleControlSite_iface;
|
*ppv = &This->IOleControlSite_iface;
|
||||||
|
}else if(IsEqualGUID(&IID_IBindHost, riid)) {
|
||||||
|
TRACE("(%p)->(IID_IBindHost %p)\n", This, ppv);
|
||||||
|
*ppv = &This->IBindHost_iface;
|
||||||
}else {
|
}else {
|
||||||
WARN("Unsupported interface %s\n", debugstr_guid(riid));
|
WARN("Unsupported interface %s\n", debugstr_guid(riid));
|
||||||
*ppv = NULL;
|
*ppv = NULL;
|
||||||
|
@ -633,6 +636,61 @@ static const IOleControlSiteVtbl OleControlSiteVtbl = {
|
||||||
PHControlSite_ShowPropertyFrame
|
PHControlSite_ShowPropertyFrame
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static inline PluginHost *impl_from_IBindHost(IBindHost *iface)
|
||||||
|
{
|
||||||
|
return CONTAINING_RECORD(iface, PluginHost, IBindHost_iface);
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI PHBindHost_QueryInterface(IBindHost *iface, REFIID riid, void **ppv)
|
||||||
|
{
|
||||||
|
PluginHost *This = impl_from_IBindHost(iface);
|
||||||
|
return IOleClientSite_QueryInterface(&This->IOleClientSite_iface, riid, ppv);
|
||||||
|
}
|
||||||
|
|
||||||
|
static ULONG WINAPI PHBindHost_AddRef(IBindHost *iface)
|
||||||
|
{
|
||||||
|
PluginHost *This = impl_from_IBindHost(iface);
|
||||||
|
return IOleClientSite_AddRef(&This->IOleClientSite_iface);
|
||||||
|
}
|
||||||
|
|
||||||
|
static ULONG WINAPI PHBindHost_Release(IBindHost *iface)
|
||||||
|
{
|
||||||
|
PluginHost *This = impl_from_IBindHost(iface);
|
||||||
|
return IOleClientSite_Release(&This->IOleClientSite_iface);
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI PHBindHost_CreateMoniker(IBindHost *iface, LPOLESTR szName, IBindCtx *pBC, IMoniker **ppmk, DWORD dwReserved)
|
||||||
|
{
|
||||||
|
PluginHost *This = impl_from_IBindHost(iface);
|
||||||
|
FIXME("(%p)->(%s %p %p %x)\n", This, debugstr_w(szName), pBC, ppmk, dwReserved);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI PHBindHost_MonikerBindToStorage(IBindHost *iface, IMoniker *pMk, IBindCtx *pBC,
|
||||||
|
IBindStatusCallback *pBSC, REFIID riid, void **ppvObj)
|
||||||
|
{
|
||||||
|
PluginHost *This = impl_from_IBindHost(iface);
|
||||||
|
FIXME("(%p)->(%p %p %p %s %p)\n", This, pMk, pBC, pBSC, debugstr_guid(riid), ppvObj);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI PHBindHost_MonikerBindToObject(IBindHost *iface, IMoniker *pMk, IBindCtx *pBC,
|
||||||
|
IBindStatusCallback *pBSC, REFIID riid, void **ppvObj)
|
||||||
|
{
|
||||||
|
PluginHost *This = impl_from_IBindHost(iface);
|
||||||
|
FIXME("(%p)->(%p %p %p %s %p)\n", This, pMk, pBC, pBSC, debugstr_guid(riid), ppvObj);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static const IBindHostVtbl BindHostVtbl = {
|
||||||
|
PHBindHost_QueryInterface,
|
||||||
|
PHBindHost_AddRef,
|
||||||
|
PHBindHost_Release,
|
||||||
|
PHBindHost_CreateMoniker,
|
||||||
|
PHBindHost_MonikerBindToStorage,
|
||||||
|
PHBindHost_MonikerBindToObject
|
||||||
|
};
|
||||||
|
|
||||||
HRESULT create_plugin_host(IUnknown *unk, PluginHost **ret)
|
HRESULT create_plugin_host(IUnknown *unk, PluginHost **ret)
|
||||||
{
|
{
|
||||||
PluginHost *host;
|
PluginHost *host;
|
||||||
|
@ -647,6 +705,7 @@ HRESULT create_plugin_host(IUnknown *unk, PluginHost **ret)
|
||||||
host->IDispatch_iface.lpVtbl = &DispatchVtbl;
|
host->IDispatch_iface.lpVtbl = &DispatchVtbl;
|
||||||
host->IOleInPlaceSiteEx_iface.lpVtbl = &OleInPlaceSiteExVtbl;
|
host->IOleInPlaceSiteEx_iface.lpVtbl = &OleInPlaceSiteExVtbl;
|
||||||
host->IOleControlSite_iface.lpVtbl = &OleControlSiteVtbl;
|
host->IOleControlSite_iface.lpVtbl = &OleControlSiteVtbl;
|
||||||
|
host->IBindHost_iface.lpVtbl = &BindHostVtbl;
|
||||||
|
|
||||||
host->ref = 1;
|
host->ref = 1;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ typedef struct {
|
||||||
IDispatch IDispatch_iface;
|
IDispatch IDispatch_iface;
|
||||||
IOleInPlaceSiteEx IOleInPlaceSiteEx_iface;
|
IOleInPlaceSiteEx IOleInPlaceSiteEx_iface;
|
||||||
IOleControlSite IOleControlSite_iface;
|
IOleControlSite IOleControlSite_iface;
|
||||||
|
IBindHost IBindHost_iface;
|
||||||
|
|
||||||
LONG ref;
|
LONG ref;
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,7 @@ static const REFIID pluginhost_iids[] = {
|
||||||
&IID_IOleInPlaceSite,
|
&IID_IOleInPlaceSite,
|
||||||
&IID_IOleInPlaceSiteEx,
|
&IID_IOleInPlaceSiteEx,
|
||||||
&IID_IOleControlSite,
|
&IID_IOleControlSite,
|
||||||
|
&IID_IBindHost,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue