什么是Windows IPC方法 [英] What are windows IPC methods

查看:309
本文介绍了什么是Windows IPC方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问:我有一个DLL,我可以在另一个程序加载。 现在该dll访问所有数据/函数在其他程序中。

Question: I have a dll that I can load in another program. Now the dll has access to all data/functions in the other program.

哪种技术,我可以使用,现在外部程序可以发送数据/命令到DLL,引导其他程序,或从它那里得到的数据?

Which technology can I use that now an external program can send data/commands to that dll, to steer the other program, or get data from it ?

我的意思是,在那意味着DDE过去,我认为这是背在Windows 3.11 / 95次。 可我现在使用的是什么?哪一个是最简单的 ?哪一个是最快的?

I mean, in the past that meant DDE, I think that was back in Windows 3.11/95 times. What can I use today? Which one is easiest ? Which one is fastest?

推荐答案

一些常见的有:

  • 命名管道的。非常容易实现。
  • 共享内存。多一点的工作,但可能是有点快(至少在我的测试)。
  • 套接字。这是相当简单和非常便携但不作为高性能。但它肯定很好,如果你突然想能有一个不同的机器上运行的进程进行通信。
  • Named Pipes. Fairly easy to implement.
  • Shared Memory. A little more work but may be a little bit faster (at least in my testing).
  • Sockets. This is fairly simple and very portable but not as high performance. But it is sure nice if you suddenly want to be able to communicate with a process running on a different machine.

这篇关于什么是Windows IPC方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆