Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Defines how a task is run.
Syntax
typedef enum _TASK_RUN_FLAGS {
TASK_RUN_NO_FLAGS = 0,
TASK_RUN_AS_SELF = 0x1,
TASK_RUN_IGNORE_CONSTRAINTS = 0x2,
TASK_RUN_USE_SESSION_ID = 0x4,
TASK_RUN_USER_SID = 0x8
} TASK_RUN_FLAGS;
Constants
TASK_RUN_NO_FLAGSValue: 0 The task is run with all flags ignored. |
TASK_RUN_AS_SELFValue: 0x1 The task is run as the user who is calling the Run method. |
TASK_RUN_IGNORE_CONSTRAINTSValue: 0x2 The task is run regardless of constraints such as "do not run on batteries" or "run only if idle". |
TASK_RUN_USE_SESSION_IDValue: 0x4 The task is run using a terminal server session identifier. |
TASK_RUN_USER_SIDValue: 0x8 The task is run using a security identifier. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Header | taskschd.h |