Class Win2kServiceStatusProcess

  • All Implemented Interfaces:
    PropertyAccessible

    public class Win2kServiceStatusProcess
    extends NTServiceStatus
    implements PropertyAccessible
    This class is strictly a data class. It holds the service failure action data for a service. It includes an array of Win2kSCAction objects as well as a reboot message, command, and a resetPeriod. See the Win32 API documentation for the SERVICE_FAILURE_ACTIONS structure for more detail.
    • Field Detail

      • SERVICE_RUNS_IN_SYSTEM_PROCESS

        public static final int SERVICE_RUNS_IN_SYSTEM_PROCESS
        Can be used for the serviceFlags property.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Win2kServiceStatusProcess

        public Win2kServiceStatusProcess()
        Constructs a new instance of a Win2kServiceStatusProcess object and assigns its properties to default values.
    • Method Detail

      • setProcessId

        public void setProcessId​(int processId)
        Sets the process id assigned to this object.
      • getProcessId

        public int getProcessId()
        Returns the process id assigned to this object.
      • setServiceFlags

        public void setServiceFlags​(int serviceFlags)
        Sets the service flags assigned to this object.
        Parameters:
        serviceFlags - 0 means either the service is not running or it is running as a non-system process. SERVICE_RUNS_IN_SYSTEM_PROCESS means that the service runs in a system process.
      • getServiceFlags

        public int getServiceFlags()
        Returns the serviceFlags assigned to this object.