gpt4 book ai didi

德尔福2009 : How to communicate between Windows service & desktop application under Vista?

转载 作者:行者123 更新时间:2023-12-03 15:03:31 25 4
gpt4 key购买 nike

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/

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