7 writes to _status
System.ServiceProcess.ServiceController (7)
System\ServiceProcess\ServiceBase.cs (7)
60
fixed (SERVICE_STATUS* pStatus = &
_status
)
395
fixed (SERVICE_STATUS* pStatus = &
_status
)
438
fixed (SERVICE_STATUS* pStatus = &
_status
)
510
fixed (SERVICE_STATUS* pStatus = &
_status
)
548
fixed (SERVICE_STATUS* pStatus = &
_status
)
746
fixed (SERVICE_STATUS* pStatus = &
_status
)
855
fixed (SERVICE_STATUS* pStatus = &
_status
)
57 references to _status
System.ServiceProcess.ServiceController (57)
System\ServiceProcess\ServiceBase.cs (57)
62
if (
_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)
70
_status
.waitHint = milliseconds;
71
_status
.checkPoint++;
110
return
_status
.win32ExitCode;
114
_status
.win32ExitCode = value;
401
_status
.currentState = ServiceControlStatus.STATE_RUNNING;
405
_status
.currentState = ServiceControlStatus.STATE_PAUSED;
444
_status
.currentState = ServiceControlStatus.STATE_PAUSED;
448
_status
.currentState = ServiceControlStatus.STATE_RUNNING;
508
if (
_status
.currentState != ServiceControlStatus.STATE_STOPPED)
512
int previousState =
_status
.currentState;
514
_status
.checkPoint = 0;
515
_status
.waitHint = 0;
516
_status
.currentState = ServiceControlStatus.STATE_STOP_PENDING;
522
_status
.currentState = ServiceControlStatus.STATE_STOPPED;
527
_status
.currentState = previousState;
546
if (
_status
.currentState == ServiceControlStatus.STATE_PAUSED ||
_status
.currentState == ServiceControlStatus.STATE_RUNNING)
550
_status
.checkPoint = 0;
551
_status
.waitHint = 0;
552
_status
.currentState = ServiceControlStatus.STATE_STOPPED;
674
_status
.serviceType = ServiceTypeOptions.SERVICE_WIN32_OWN_PROCESS;
678
_status
.serviceType = ServiceTypeOptions.SERVICE_WIN32_SHARE_PROCESS;
681
_status
.currentState = ServiceControlStatus.STATE_START_PENDING;
682
_status
.controlsAccepted = 0;
683
_status
.win32ExitCode = 0;
684
_status
.serviceSpecificExitCode = 0;
685
_status
.checkPoint = 0;
686
_status
.waitHint = 0;
750
else 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)
758
if (
_status
.currentState == ServiceControlStatus.STATE_PAUSED)
760
_status
.currentState = ServiceControlStatus.STATE_CONTINUE_PENDING;
769
if (
_status
.currentState == ServiceControlStatus.STATE_RUNNING)
771
_status
.currentState = ServiceControlStatus.STATE_PAUSE_PENDING;
780
int previousState =
_status
.currentState;
787
if (
_status
.currentState == ServiceControlStatus.STATE_PAUSED ||
_status
.currentState == ServiceControlStatus.STATE_RUNNING)
789
_status
.currentState = ServiceControlStatus.STATE_STOP_PENDING;
793
_status
.currentState = previousState;
828
_status
.checkPoint = 0;
829
_status
.waitHint = 0;
830
_status
.currentState = ServiceControlStatus.STATE_RUNNING;
835
_status
.currentState = ServiceControlStatus.STATE_STOPPED;
895
_status
.controlsAccepted = _acceptedCommands;
897
if ((
_status
.controlsAccepted & AcceptOptions.ACCEPT_STOP) != 0)
899
_status
.controlsAccepted |= AcceptOptions.ACCEPT_SHUTDOWN;
902
_status
.currentState = ServiceControlStatus.STATE_START_PENDING;
926
if (
_status
.win32ExitCode == 0)
928
_status
.win32ExitCode = ServiceControlStatus.ERROR_EXCEPTION_IN_SERVICE;
939
if (
_status
.currentState != ServiceControlStatus.STATE_STOPPED)
941
_status
.currentState = ServiceControlStatus.STATE_STOPPED;