public static void ISWindowsServiceInstalled(string serviceName) { // get list of Windows services ServiceController[] services = ServiceController.GetServices(); foreach (ServiceController service in services) { if (service.ServiceName == serviceName) return true; } return false; }
但愿本文所述对大家的C#措施设计有所辅佐。
除声明外,跑步客文章均为原创,,转载请以链接形式标明本文地点
本文地点:
相关内容
WinForm实现的图片拖拽与缩放成果示例