作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Vista/Windows2008/Windows7下桌面应用程序如何与Windows服务通信?应用程序需要向服务发送小字符串并接收返回的字符串响应。两者都是用Delphi 2009编写的。(请同时提供示例代码)
最佳答案
要走的路是named pipes ,您可能需要查看不同 Integrity levels 之间的通信。
This article探讨如何在 Vista 中执行此操作。虽然它是用 C++ 编写的,但它只是基本的 Windows API 调用,因此它应该足够快地转换为 Delphi。
如果您想搜索有关此主题的更多信息,这种通信称为进程间通信,但更好的搜索术语是 IPC。
关于德尔福2009 : How to communicate between Windows service & desktop application under Vista?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1260181/
我是一名优秀的程序员,十分优秀!