TPipeServer 和 TPipeClient 组件的读/写示例代码和安全检查

发布于 2025-01-07 07:21:50 字数 353 浏览 6 评论 0原文

我需要在 Windows 服务和 GUI 应用程序之间进行 IPC,两者都是用 Delphi 2010 编写的。我决定为此使用命名管道。 我成功构建并安装了 Russell Libby 的 TPipeServer 和 TPipeClient 组件(链接)。 我遵循了其他答案,例如

编辑:我需要一种有效的方法来通过 Windows Server 2008 / Windows Vista / Windows 7 中的安全检查

I need IPC between a windows service and a GUI application both written in Delphi 2010. I decided to use named pipe for this.
I built and installed successfully Russell Libby's TPipeServer and TPipeClient components (link).
I followed other answers like this.
But my service received only empty messages from the client. After many test I concluded that I was using those components erroneously, so i don't want to post any code here.
So I'm looking for a valid example about how these components work in order to write/read strings in a named pipe (from client to server and viceversa). Any help is really appreciated, even using other free named pipes components or source codes.
Thank you.

Edit: I need a valid way to pass security check in windows server 2008 / windows vista / windows 7

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

弥繁 2025-01-14 07:21:50

Iztok Kacin 的 Cromis-IPC 组件是一个多功能 IPC 通信 Delphi 组件,利用Windows 命名管道。给定的链接是一个客户端/服务器示例,并且在组件的源代码中是一个完整的示例。

Cromis IPC 可用于同一计算机内的过程通信以及网络上计算机之间的通信。在同一台计算机内进行通信时,权限很容易处理。有关如何处理权限的详细说明,请参阅 Windows 文档 命名管道安全和访问权限

The Cromis-IPC component by Iztok Kacin is a versatile IPC communication Delphi component utilizing windows named pipes. On the given link is a client/server example, and in the source code of the component is a full example.

The Cromis IPC can be used for process communication within the same computer as well as communication between computers on a network. Permissions are easy to handle when doing communication within the same computer. For a detailed description how to handle permissions, see windows doc Named Pipe Security and Access Rights.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文