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
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 >
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