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. |
博客介绍了SC_ACTION结构,该结构代表服务控制管理器可执行的操作。此结构在SERVICE_FAILURE_ACTIONS结构中,被ChangeServiceConfig2和QueryServiceConfig2函数使用,还提及了成员、备注和要求等内容。
51

被折叠的 条评论
为什么被折叠?



