Click or drag to resize

WindowsApiSERVICE_FAILURE_ACTIONS Structure

Win32 SERVICE_FAILURE_ACTIONS structure.
Inheritance Hierarchy
SystemObject
  SystemValueType
    GSF.InteropWindowsApiSERVICE_FAILURE_ACTIONS

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public struct SERVICE_FAILURE_ACTIONS
View Source

The WindowsApiSERVICE_FAILURE_ACTIONS type exposes the following members.

Methods
 NameDescription
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)
Top
Fields
 NameDescription
Public fieldcActions The number of elements in the lpsaActions array.
Public fielddwResetPeriod The time after which to reset the failure count to zero if there are no failures, in seconds. Specify INFINITE to indicate that this value should never be reset.
Public fieldlpCommand The command line of the process for the CreateProcess function to execute in response to the SC_ACTION_RUN_COMMAND service controller action. This process runs under the same account as the service.
Public fieldlpRebootMsg The message to be broadcast to server users before rebooting in response to the SC_ACTION_REBOOT service controller action.
Public fieldlpsaActions A pointer to an array of SC_ACTION structures.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
Represents the action the service controller should take on each failure of a service. A service is considered failed when it terminates without reporting a status of SERVICE_STOPPED to the service controller.
See Also