39 references to ServiceControlStatus
System.ServiceProcess.ServiceController (39)
System\ServiceProcess\ServiceBase.cs (32)
62if (_status.currentState != ServiceControlStatus.STATE_CONTINUE_PENDING && 63_status.currentState != ServiceControlStatus.STATE_START_PENDING && 64_status.currentState != ServiceControlStatus.STATE_STOP_PENDING && 65_status.currentState != ServiceControlStatus.STATE_PAUSE_PENDING) 401_status.currentState = ServiceControlStatus.STATE_RUNNING; 405_status.currentState = ServiceControlStatus.STATE_PAUSED; 444_status.currentState = ServiceControlStatus.STATE_PAUSED; 448_status.currentState = ServiceControlStatus.STATE_RUNNING; 508if (_status.currentState != ServiceControlStatus.STATE_STOPPED) 516_status.currentState = ServiceControlStatus.STATE_STOP_PENDING; 522_status.currentState = ServiceControlStatus.STATE_STOPPED; 546if (_status.currentState == ServiceControlStatus.STATE_PAUSED || _status.currentState == ServiceControlStatus.STATE_RUNNING) 552_status.currentState = ServiceControlStatus.STATE_STOPPED; 681_status.currentState = ServiceControlStatus.STATE_START_PENDING; 750else if (_status.currentState != ServiceControlStatus.STATE_CONTINUE_PENDING && 751_status.currentState != ServiceControlStatus.STATE_START_PENDING && 752_status.currentState != ServiceControlStatus.STATE_STOP_PENDING && 753_status.currentState != ServiceControlStatus.STATE_PAUSE_PENDING) 758if (_status.currentState == ServiceControlStatus.STATE_PAUSED) 760_status.currentState = ServiceControlStatus.STATE_CONTINUE_PENDING; 769if (_status.currentState == ServiceControlStatus.STATE_RUNNING) 771_status.currentState = ServiceControlStatus.STATE_PAUSE_PENDING; 787if (_status.currentState == ServiceControlStatus.STATE_PAUSED || _status.currentState == ServiceControlStatus.STATE_RUNNING) 789_status.currentState = ServiceControlStatus.STATE_STOP_PENDING; 830_status.currentState = ServiceControlStatus.STATE_RUNNING; 835_status.currentState = ServiceControlStatus.STATE_STOPPED; 902_status.currentState = ServiceControlStatus.STATE_START_PENDING; 928_status.win32ExitCode = ServiceControlStatus.ERROR_EXCEPTION_IN_SERVICE; 939if (_status.currentState != ServiceControlStatus.STATE_STOPPED) 941_status.currentState = ServiceControlStatus.STATE_STOPPED;
System\ServiceProcess\ServiceControllerStatus.cs (7)
8ContinuePending = Interop.Advapi32.ServiceControlStatus.STATE_CONTINUE_PENDING, 9Paused = Interop.Advapi32.ServiceControlStatus.STATE_PAUSED, 10PausePending = Interop.Advapi32.ServiceControlStatus.STATE_PAUSE_PENDING, 11Running = Interop.Advapi32.ServiceControlStatus.STATE_RUNNING, 12StartPending = Interop.Advapi32.ServiceControlStatus.STATE_START_PENDING, 13Stopped = Interop.Advapi32.ServiceControlStatus.STATE_STOPPED, 14StopPending = Interop.Advapi32.ServiceControlStatus.STATE_STOP_PENDING