_TASK_STATE Enumeration

Defines the different states that a registered task can be in.

Syntax

typedef enum _TASK_STATE {
  TASK_STATE_UNKNOWN   ,
  TASK_STATE_DISABLED  ,
  TASK_STATE_QUEUED    ,
  TASK_STATE_READY     ,
  TASK_STATE_RUNNING
} TASK_STATE;

Constants

TASK_STATE_UNKNOWN The state of the task is unknown.
TASK_STATE_DISABLED The task is registered but is disabled and no instances of the task are queued or running. The task cannot be run until it is enabled.
TASK_STATE_QUEUED Instances of the task are queued.
TASK_STATE_READY The task is ready to be executed, but no instances are queued or running.
TASK_STATE_RUNNING One or more instances of the task is running.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header taskschd.h

See Also

Task Scheduler

Task Scheduler Enumerated Types