[This is preliminary documentation and subject to change.]
The SC_ACTION structure represents an action that the service control manager can perform.
typedef struct _SC_ACTION {
SC_ACTION_TYPE Type;
DWORD Delay;
} SC_ACTION, *LPSC_ACTION;
Value | Meaning |
---|---|
SC_ACTION_NONE | No action. |
SC_ACTION_REBOOT | Reboot the computer. |
SC_ACTION_RESTART | Restart the service. |
SC_ACTION_RUN_COMMAND | Run a command. |
This structure is used by the ChangeServiceConfig2 and QueryServiceConfig2 functions, in the SERVICE_FAILURE_ACTIONS structure.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winsvc.h.
Services Overview, Service Structures, ChangeServiceConfig2, QueryServiceConfig2, SERVICE_FAILURE_ACTIONS