I Have a app running background. I use it to get the url on IE if the IE is running... It's开发者_如何学C better if It is a hook not a loop enum the windows. How can do that?
The official, non-window enuming way to do this is to author a BHO, implement IObjectWithSite and then get the IWebBrowser2 pointer from your site. IWebBrowser2::get_LocationUrl() will give you the URL.
精彩评论