Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines how the Task Scheduler handles existing instances of the task when it starts a new instance of the task.
Syntax
typedef enum _TASK_INSTANCES_POLICY {
TASK_INSTANCES_PARALLEL = 0,
TASK_INSTANCES_QUEUE = 1,
TASK_INSTANCES_IGNORE_NEW = 2,
TASK_INSTANCES_STOP_EXISTING = 3
} TASK_INSTANCES_POLICY;
Constants
TASK_INSTANCES_PARALLELValue: 0 Starts new instance while an existing instance is running. |
TASK_INSTANCES_QUEUEValue: 1 Starts a new instance of the task after all other instances of the task are complete. |
TASK_INSTANCES_IGNORE_NEWValue: 2 Does not start a new instance if an existing instance of the task is running. |
TASK_INSTANCES_STOP_EXISTINGValue: 3 Stops an existing instance of the task before it starts a new instance. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Header | taskschd.h |