开发者

C# IPC Between BHO and Service

开发者 https://www.devze.com 2023-01-14 05:56 出处:网络
I can\'t seem to find a way to communicate between my IE C# BHO and a C# console app running as SYSTEM.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号