Export (0) Print
Expand All

TASK_RUN_FLAGS enumeration

Defines how a task is run.

Syntax


typedef enum  { 
  TASK_RUN_NO_FLAGS             = 0x0,
  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

The task is run with all flags ignored.

TASK_RUN_AS_SELF

The task is run as the user who is calling the Run method.

TASK_RUN_IGNORE_CONSTRAINTS

The task is run regardless of constraints such as "do not run on batteries" or "run only if idle".

TASK_RUN_USE_SESSION_ID

The task is run using a terminal server session identifier.

TASK_RUN_USER_SID

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 Enumerated Types
Task Scheduler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft