Get iwebbrowser2 via Internet explorer_server handle interfaces, how many ways ah?

Category: C/C++ -> C++ Author: ANGEL178603197 Date: 2014-09-05 15:53:58
2014-09-05 15:53:58
Google around and find two ways

first one is to send "WM_HTML_GETOBJECT" message;

second is through IShellWindows get a running instance of IE, and then Get interfaces; But this has a limitation (probably he did not figure out how to use it), you can only original IE useful and added to the shell of the various "IE" will have no effect;

I would like to invite everyone to help, in addition to the above two methods, there are other ways to obtain it? mainly to obtain the kind of added to the shell "IE" the IWebbrowser2 interfaces; aim is to get some control over;

because some packers "IE" is shielded WM_HTML_GETOBJECT messages, so by the first method can not obtain; second method has "limitations".

In this Xianxie!!
2014-09-05 16:08:06

you use the first method to try it yourself, look at your screen too is valid.
loaded if it is supported by the words of bho , setsite IWebBrowser2 it will be exposed,
2014-09-05 16:11:13
only used the first method,
in the latter case it should be safe to consider it.
before me in firefox The approach is: do in firefox extension (that is, in IE BHO), and then open the thread starts a loop,
kernel events receive messages or whatever, return data or direct agent. should be noted that browsing control access to the UI thread, to access the browser's main thread, then insert a paragraph js interval 20ms judge extended the event or message status, again agency,
very troublesome.......
2014-09-05 16:24:27
If only the first method, so why am I blocked the news that their "shell browser" or someone else will be hijacked it?
2014-09-05 16:31:01
will not, and to learn it.
2014-09-05 16:44:14
understand brothers on ah, to the point prompt arraignment!
2014-09-05 16:56:54
The first type has been blocked, really effective; but still the same now been hijacked..
2014-09-05 17:02:10
There are more familiar with that piece of friends? Thank you!