IE7 Protected Mode and windows hooks
Hello
Can anyone help me with information about hooks ran under Protected Mode in IE7. I am setting up hook from process running under interactive user privileges. Hook procedure perfectly loads into IE7. Upon some event in IE7 I need to send back to the process some data. I am using SendMessage for that purpose, but under Protected mode it fails with access denied error, because privilege level in IE7 context is lower than one in my process(this case is mentioned in Vista SDK documentation).
How can I elevate my situation and let the system pass the message from IE7 to my process instead of just skip it? Can set privileges for my service HWND as low as IE7 is running under? It will bloody hard to switch from Windows messaging to some another technique in my existing project.
Have tried to link my hook dll with "elevation" manifest. Have tried all available values for the elevation level:requireAdministrator,highestAvailable. But had no luck.
Should I sign the hook DLL to succeed.
Manifest:
<?
xmlversion="1.0"encoding="UTF-8"standalone="yes"?><
assemblyxmlns="urn:schemas-microsoft-com:asm.v1"manifestVersion="1.0"><assemblyIdentityname="My"processorArchitecture="*"version="1.0.0.0"type="win32"/><description>Mine
</description>
<trustInfoxmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevellevel="requireAdministrator"uiAccess="true"/>
</requestedPrivileges>
</security>
</trustInfo>
</
assembly>Regards, Anton

