gpt4 book ai didi

BHO 和服务之间的 C# IPC

转载 作者:太空宇宙 更新时间:2023-11-03 14:27:00 24 4
gpt4 key购买 nike

我似乎找不到在我的 IE C# BHO 和作为 SYSTEM 运行的 C# 控制台应用程序之间进行通信的方法。

到目前为止,我已经尝试过使用 Remoting 和 EventWaitHandle,但是当我在 Win 7 中打开默认设置时,两者都会给我“拒绝访问”错误。

我已经能够拥有一个控制台应用程序,它使用远程处理和 EventWaitHandle 与服务进行通信。

我需要一种在打开 UAC 的情况下在两个进程之间共享数据的方法,我有哪些选择?

最佳答案

首先回顾 Understanding and Working in Protected Mode Internet Explorer .有一个关于中途的部分指出:

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.

本质上,任何在 IE“保护模式”进程中运行的东西都是非常受限的“沙盒”。同时 this codeproject article以 C++/COM 为目标,您应该能够应用它解释的原则来编写托管代码中的内容,尽管您可能必须 P/Invoke 才能实现这一点。

关于BHO 和服务之间的 C# IPC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3643723/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com