public static void ISWindowsServiceInstalled(string service

时间:2022-06-01 08:19:57

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#措施设计有所辅佐。

除声明外,跑步客文章均为原创,,转载请以链接形式标明本文地点
  

本文地点:  






相关内容

public static void ISWindowsServiceInstalled(string service

WinForm实现的图片拖拽与缩放成果示例