摘要:
private void serviceInstaller1_AfterInstall(object sender, InstallEventArgs e) { ManagementBaseObject inPar = null; ManagementClass mc = new ManagementClass("Win32_Service"); foreach (ManagementObject mo in mc.GetInstances()) { if (mo["Name"].ToString() == "服务名") { inPa 阅读全文