Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 |