Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Tue, 6 May 2008 16:22:19 +0200,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


Getting IMarkupServices from IHTMLDocument2   
When I create IHTMLDocument2 object using CoCreateInstance I'm able to get 
IMarkupService. But when I have IHTMLDocument2 obtained from Internet 
Explorer window I can't get IMarkupServices with QueryInterface. It returns 
E_NOINTERFACE. Is it because IE runs in separate process?

-- 
Grzegorz Niemirowski, Poland, Europe
www.grzegorz.net/oe/oept.php
Uptime: 7 days, 16 hours, 12 minutes and 59 seconds
date: Tue, 6 May 2008 16:22:19 +0200   author:   Grzegorz Niemirowski

Re: Getting IMarkupServices from IHTMLDocument2   
from Internet Explorer window? By sending a message to another process?
Probably it is just an interface to a proxy object that does not support a
lot of interfaces.
Write a BHO to see if you can get the service in the DocumentComplete event
handler.

-- 
Sheng Jiang
Microsoft MVP in VC++
"Grzegorz Niemirowski"  wrote in message
news:OGr1ZS4rIHA.5580@TK2MSFTNGP04.phx.gbl...
> When I create IHTMLDocument2 object using CoCreateInstance I'm able to get
> IMarkupService. But when I have IHTMLDocument2 obtained from Internet
> Explorer window I can't get IMarkupServices with QueryInterface. It
returns
> E_NOINTERFACE. Is it because IE runs in separate process?
>
> -- 
> Grzegorz Niemirowski, Poland, Europe
> www.grzegorz.net/oe/oept.php
> Uptime: 7 days, 16 hours, 12 minutes and 59 seconds
>
date: Wed, 7 May 2008 12:20:12 -0600   author:   Sheng Jiang[MVP] uss

Re: Getting IMarkupServices from IHTMLDocument2   
Sheng Jiang[MVP] <sheng_jiang@hotmail.com.discuss> napisa³(a):
> from Internet Explorer window? By sending a message to another process?
> Probably it is just an interface to a proxy object that does not
> support a lot of interfaces.
> Write a BHO to see if you can get the service in the DocumentComplete
> event handler.

Yes, I send WM_HTML_GETOBJECT and use ObjectFromLresult(). I'm not very good 
at COM and I was wondering how getting pointer to an object in another 
process works. It seems that it is indeed done by some stripped down proxy 
object. Thanks for info.

-- 
Grzegorz Niemirowski, Poland, Europe
www.grzegorz.net/oe/oept.php
Uptime: 8 days, 20 hours, 21 minutes and 39 seconds
date: Wed, 7 May 2008 19:33:04 +0200   author:   Grzegorz Niemirowski

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us