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
d4aacad9
Commit
d4aacad9
authored
Nov 16, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for ActiveX objects without IQuickActivate support.
parent
bd44f104
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
4 deletions
+40
-4
pluginhost.c
dlls/mshtml/pluginhost.c
+40
-4
No files found.
dlls/mshtml/pluginhost.c
View file @
d4aacad9
...
...
@@ -186,6 +186,7 @@ static void activate_plugin(PluginHost *host)
IClientSecurity
*
client_security
;
IQuickActivate
*
quick_activate
;
IOleCommandTarget
*
cmdtrg
;
IViewObjectEx
*
view_obj
;
IOleObject
*
ole_obj
;
IDispatchEx
*
dispex
;
IDispatch
*
disp
;
...
...
@@ -211,22 +212,57 @@ static void activate_plugin(PluginHost *host)
QACONTAINER
container
=
{
sizeof
(
container
)};
QACONTROL
control
=
{
sizeof
(
control
)};
TRACE
(
"Using IQuickActivate
\n
"
);
container
.
pClientSite
=
&
host
->
IOleClientSite_iface
;
container
.
dwAmbientFlags
=
QACONTAINER_SUPPORTSMNEMONICS
|
QACONTAINER_MESSAGEREFLECT
|
QACONTAINER_USERMODE
;
container
.
pAdviseSink
=
&
host
->
IAdviseSinkEx_iface
;
container
.
pPropertyNotifySink
=
&
host
->
IPropertyNotifySink_iface
;
hres
=
IQuickActivate_QuickActivate
(
quick_activate
,
&
container
,
&
control
);
IQuickActivate_Release
(
quick_activate
);
if
(
FAILED
(
hres
))
FIXME
(
"QuickActivate failed: %08x
\n
"
,
hres
);
load_plugin
(
host
);
}
else
{
FIXME
(
"No IQuickActivate
\n
"
);
return
;
DWORD
status
=
0
;
hres
=
IUnknown_QueryInterface
(
host
->
plugin_unk
,
&
IID_IOleObject
,
(
void
**
)
&
ole_obj
);
if
(
FAILED
(
hres
))
{
FIXME
(
"Plugin does not support IOleObject
\n
"
);
return
;
}
hres
=
IOleObject_GetMiscStatus
(
ole_obj
,
DVASPECT_CONTENT
,
&
status
);
TRACE
(
"GetMiscStatus returned %08x %x
\n
"
,
hres
,
status
);
hres
=
IOleObject_SetClientSite
(
ole_obj
,
&
host
->
IOleClientSite_iface
);
IOleObject_Release
(
ole_obj
);
if
(
FAILED
(
hres
))
{
FIXME
(
"SetClientSite failed: %08x
\n
"
,
hres
);
return
;
}
load_plugin
(
host
);
hres
=
IUnknown_QueryInterface
(
host
->
plugin_unk
,
&
IID_IViewObjectEx
,
(
void
**
)
&
view_obj
);
if
(
SUCCEEDED
(
hres
))
{
DWORD
view_status
=
0
;
hres
=
IViewObjectEx_SetAdvise
(
view_obj
,
DVASPECT_CONTENT
,
0
,
(
IAdviseSink
*
)
&
host
->
IAdviseSinkEx_iface
);
if
(
FAILED
(
hres
))
WARN
(
"SetAdvise failed: %08x
\n
"
,
hres
);
hres
=
IViewObjectEx_GetViewStatus
(
view_obj
,
&
view_status
);
IViewObjectEx_Release
(
view_obj
);
TRACE
(
"GetViewStatus returned %08x %x
\n
"
,
hres
,
view_status
);
}
}
load_plugin
(
host
);
update_readystate
(
host
);
/* NOTE: Native QIs for I
ViewObjectEx, I
ActiveScript, an undocumented IID, IOleControl and IRunnableObject */
/* NOTE: Native QIs for IActiveScript, an undocumented IID, IOleControl and IRunnableObject */
hres
=
IUnknown_QueryInterface
(
host
->
plugin_unk
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
if
(
SUCCEEDED
(
hres
))
{
...
...
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