Get IActiveScript of current page in IE

276 Views Asked by At

I have an IE plugin (BHO) and I want to access script engine.

I want to start profiling it, so IActiveScript interface pointer is probably needed.

I have IWebBrowser2 pointer, from that I tried getting IHTMLDocument (get_Document) and querying it to IActiveScript and IActiveScriptSite with no success.

I also tried IHTMLDocument->get_Script, but that returns just script IDispatch pointer (same as IActiveScript::GetScriptDispatch).

0

There are 0 best solutions below