C# windows服务:如何检测指定的Windows服务是否启动
摘要:
public void CheckServerState(string ServiceName) { ServiceController[] service = ServiceController.GetServices(); bool isStart = false; bool isExite = false; for (int i = 0; i < service.Length; i++) { if (service[i]... 阅读全文
posted @ 2014-01-21 01:07 鹿我所录 阅读(6244) 评论(0) 推荐(1)
浙公网安备 33010602011771号