调用已从Windows应用程序安装的Windows服务 [英] Invoke a Windows Service which is already installed from an Windows Application

查看:93
本文介绍了调用已从Windows应用程序安装的Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要调用已从Windows应用程序安装的Windows Service API.在运行时,我需要将值传递给Win服务,以使用该服务的系统帐户执行某些任务.请帮助..谢谢您.

Need to invoke a Windows Service API which is already installed from an Windows Application. At run time i need to pass the values to the Win Service to perform certain tasks with the System account of the Service. Pls help.. Thanx in Advance.

推荐答案

您必须在服务中建立某种通信机制,对吗?那么您如何使用这种进程间通信呢?

您不能只在单独的进程中调用任何方法.
You''ve had to have built some kind of communication mechanism into the service, right? So what di you use for this inter-process communication?

You cannot just call any arbitrary method in a seperate process.


这篇关于调用已从Windows应用程序安装的Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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