I can't seem to find a way to communicate between my IE C# BHO and a C# console app running as SYSTEM.
So far I have tried using Remoting and EventWaitHandle, but both give me "access denied" errors when I have UAC turned on the default setting in Win 7.
I have been able to have a conso开发者_JAVA百科le app that communicates with the service using both Remoting and EventWaitHandle.
I need a way to share data between the two processes with UAC on, what are my options?
Start by reviewing Understanding and Working in Protected Mode Internet Explorer. There's a section about half-way down which states:
Note The best practice is run your application with low integrity if you are communicating with Protected mode. Otherwise use only secure forms of interprocess communication (IPC), such as remote procedure calls (RPC), to communicate between Protected mode and a higher integrity process.
Essentially, anything running in an IE "Protected Mode" process is very restricted "sandbox". Whilst this codeproject article targets C++/COM, you should be able to apply the principles it explains to writing something in managed code although it's likely you'll have to P/Invoke to achieve this.
精彩评论