Delphi 2009:如何在Windows服务与Vista下的桌面应用程序? [英] Delphi 2009: How to communicate between Windows service & desktop application under Vista?

查看:151
本文介绍了Delphi 2009:如何在Windows服务与Vista下的桌面应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

桌面应用程序如何在Vista / Windows2008 / Windows7下与Windows服务通信?应用程序需要向服务发送小字符串并接收字符串响应。两者都写在Delphi 2009中(请提供示例代码)

How can a desktop application communicate with a Windows service under Vista/Windows2008/Windows7? The application needs to send small strings to the service and receive string responses back. Both are written in Delphi 2009. (Please provide sample code also)

推荐答案

要走的路是命名管道,您可能需要查看不同完整性级别

The way to go is named pipes, you'll probably have to take a look at the communication across different Integrity levels.

本文探讨如何在远景中做到这一点。虽然它是用c ++编写的,但它只是基本的Windows API调用,所以它应该足够快地转换为Delphi。

This article explores how to do this in vista. Although it's written in c++ it's just basic Windows API calls, so it should translate fast enough to Delphi.

如果要搜索更多关于此主题的内容,这种通信称为进程间通信,但更好的搜索术语是IPC。

这篇关于Delphi 2009:如何在Windows服务与Vista下的桌面应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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