In my app, I want to open a new IE window, then receive and process DocumentComplete and NavigateComplete2 events fired from the new opened IE. In XP, everything works fine. In Vista, the new IE is running in Protected Mode, so my app is not able to receive DocumentCompelte event from the IE.
I do not want to change any security level, like open IE in Protected Mode off or lower my app integrity. I wonder if I can use ChangeWindowsMessageFilter to receive DocumentComplete and NavigateComplete2 events from Protected Mode IE? My code is like:
ChangeWindowMessageFilter(DISPID_DOCUMENTCOMPELTE, MSGFLT_ADD );
ChangeWindowMessageFilter(DISPID_NAVIGATECOMPLETE2, MSGFLT_ADD );
Thanks!