SC_ACTION
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;
Members
-
Type
-
Action to be performed. This member can be one of the following values from the
SC_ACTION_TYPE enumeration type.
Value Meaning SC_ACTION_NONE
0No action. SC_ACTION_REBOOT
1Reboot the computer. SC_ACTION_RESTART
2Restart the service. SC_ACTION_RUN_COMMAND
3Run a command.
Delay
- Time to wait before performing the specified action, in milliseconds.
Remarks
This structure is used by the ChangeServiceConfig2 and QueryServiceConfig2 functions, in the SERVICE_FAILURE_ACTIONS structure.
Requirements
Client | Requires Windows XP or Windows 2000 Professional. |
---|---|
Server | Requires Windows Server 2003 or Windows 2000 Server. |
Header | Declared in Winsvc.h; include Windows.h. |