Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c12d9ff8
Commit
c12d9ff8
authored
Dec 06, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added PluginHost's IServiceProvider stub implementation.
parent
4479194e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
pluginhost.c
dlls/mshtml/pluginhost.c
+41
-0
pluginhost.h
dlls/mshtml/pluginhost.h
+1
-0
activex.c
dlls/mshtml/tests/activex.c
+1
-0
No files found.
dlls/mshtml/pluginhost.c
View file @
c12d9ff8
...
...
@@ -129,6 +129,9 @@ static HRESULT WINAPI PHClientSite_QueryInterface(IOleClientSite *iface, REFIID
}
else
if
(
IsEqualGUID
(
&
IID_IBindHost
,
riid
))
{
TRACE
(
"(%p)->(IID_IBindHost %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IBindHost_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IServiceProvider
,
riid
))
{
TRACE
(
"(%p)->(IID_IServiceProvider %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IServiceProvider_iface
;
}
else
{
WARN
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
...
...
@@ -691,6 +694,43 @@ static const IBindHostVtbl BindHostVtbl = {
PHBindHost_MonikerBindToObject
};
static
inline
PluginHost
*
impl_from_IServiceProvider
(
IServiceProvider
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
PluginHost
,
IServiceProvider_iface
);
}
static
HRESULT
WINAPI
PHServiceProvider_QueryInterface
(
IServiceProvider
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
PluginHost
*
This
=
impl_from_IServiceProvider
(
iface
);
return
IOleClientSite_QueryInterface
(
&
This
->
IOleClientSite_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
PHServiceProvider_AddRef
(
IServiceProvider
*
iface
)
{
PluginHost
*
This
=
impl_from_IServiceProvider
(
iface
);
return
IOleClientSite_AddRef
(
&
This
->
IOleClientSite_iface
);
}
static
ULONG
WINAPI
PHServiceProvider_Release
(
IServiceProvider
*
iface
)
{
PluginHost
*
This
=
impl_from_IServiceProvider
(
iface
);
return
IOleClientSite_Release
(
&
This
->
IOleClientSite_iface
);
}
static
HRESULT
WINAPI
PHServiceProvider_QueryService
(
IServiceProvider
*
iface
,
REFGUID
guidService
,
REFIID
riid
,
void
**
ppv
)
{
PluginHost
*
This
=
impl_from_IServiceProvider
(
iface
);
FIXME
(
"(%p)->(%s %s %p)
\n
"
,
This
,
debugstr_guid
(
guidService
),
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
const
IServiceProviderVtbl
ServiceProviderVtbl
=
{
PHServiceProvider_QueryInterface
,
PHServiceProvider_AddRef
,
PHServiceProvider_Release
,
PHServiceProvider_QueryService
};
HRESULT
create_plugin_host
(
IUnknown
*
unk
,
PluginHost
**
ret
)
{
PluginHost
*
host
;
...
...
@@ -706,6 +746,7 @@ HRESULT create_plugin_host(IUnknown *unk, PluginHost **ret)
host
->
IOleInPlaceSiteEx_iface
.
lpVtbl
=
&
OleInPlaceSiteExVtbl
;
host
->
IOleControlSite_iface
.
lpVtbl
=
&
OleControlSiteVtbl
;
host
->
IBindHost_iface
.
lpVtbl
=
&
BindHostVtbl
;
host
->
IServiceProvider_iface
.
lpVtbl
=
&
ServiceProviderVtbl
;
host
->
ref
=
1
;
...
...
dlls/mshtml/pluginhost.h
View file @
c12d9ff8
...
...
@@ -26,6 +26,7 @@ typedef struct {
IOleInPlaceSiteEx
IOleInPlaceSiteEx_iface
;
IOleControlSite
IOleControlSite_iface
;
IBindHost
IBindHost_iface
;
IServiceProvider
IServiceProvider_iface
;
LONG
ref
;
...
...
dlls/mshtml/tests/activex.c
View file @
c12d9ff8
...
...
@@ -98,6 +98,7 @@ static const REFIID pluginhost_iids[] = {
&
IID_IOleInPlaceSiteEx
,
&
IID_IOleControlSite
,
&
IID_IBindHost
,
&
IID_IServiceProvider
,
NULL
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment