public static bool IsServiceRunningOnNode(string serviceName, string nodeName, out Exception ex) { ex = null; bool fRunning = false; ex = ServiceOperations.RunOperation(delegate(object param0, EventArgs param1) { ServiceController serviceController = new ServiceController(serviceName, nodeName); using (serviceController) { ServiceOperations.Tracer.TraceDebug <string, ServiceControllerStatus, string>(0L, "IsServiceRunningOnNode: {0} is {1} on {2}.", serviceName, serviceController.Status, nodeName); if (serviceController.Status == ServiceControllerStatus.Running) { fRunning = true; } } }); if (ex != null) { ServiceOperations.Tracer.TraceError <string, string, Exception>(0L, "IsServiceRunningOnNode( {0}, {1} ): Caught exception {2}", serviceName, nodeName, ex); } return(fRunning); }
// Token: 0x0600088B RID: 2187 RVA: 0x00028DD4 File Offset: 0x00026FD4 internal static Exception KillWinInitProcess() { return(ServiceOperations.KillProcess("wininit", true)); }