TASK_RUN_FLAGS enumeration (taskschd.h)

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_FLAGS
Value: 0
The task is run with all flags ignored.
TASK_RUN_AS_SELF
Value: 0x1
The task is run as the user who is calling the Run method.
TASK_RUN_IGNORE_CONSTRAINTS
Value: 0x2
The task is run regardless of constraints such as "do not run on batteries" or "run only if idle".
TASK_RUN_USE_SESSION_ID
Value: 0x4
The task is run using a terminal server session identifier.
TASK_RUN_USER_SID
Value: 0x8
The task is run using a security identifier.

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