其他m/c的Windows自定义服务 [英] Windows custom service from other m/c
本文介绍了其他m/c的Windows自定义服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在本地m/c``A''中创建Windows自定义服务,并且服务正在运行.但是我想知道如何从LAN中的其他m/c了解该服务是否正在运行? br/>
请帮助我...
I create windows custom service in local m/c ''A'' & service is running.But I want to know how will i understand that service either is running or not from other m/c in LAN???
Please help me...
推荐答案
ServiceController sc = new ServiceController("OMSDataService");
MessageBox.Show(sc.Status.ToString());
服务控制器 [ http://msdn.microsoft.com/en-us/library/system.serviceprocess. servicecontroller.aspx [ ^ ]
Service Controller[^]
http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.aspx[^]
这篇关于其他m/c的Windows自定义服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文