摘要: 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 阅读全文
posted @ 2012-09-11 07:09 心际迷航 阅读(191) 评论(0) 推荐(0) 编辑