Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _INC_TASKSCHD
      7 #define _INC_TASKSCHD
      8 #if (_WIN32_WINNT >= 0x0600)
      9 
     10 #ifdef __cplusplus
     11 extern "C" {
     12 #endif
     13 
     14   typedef enum _TASK_COMPATIBILITY {
     15     TASK_COMPATIBILITY_AT   = 0,
     16     TASK_COMPATIBILITY_V1   = 1,
     17     TASK_COMPATIBILITY_V2   = 2
     18   } TASK_COMPATIBILITY;
     19 
     20   typedef enum _TASK_CREATION {
     21     TASK_VALIDATE_ONLY                  = 0x1,
     22     TASK_CREATE                         = 0x2,
     23     TASK_UPDATE                         = 0x4,
     24     TASK_CREATE_OR_UPDATE               = 0x6,
     25     TASK_DISABLE                        = 0x8,
     26     TASK_DONT_ADD_PRINCIPAL_ACE         = 0x10,
     27     TASK_IGNORE_REGISTRATION_TRIGGERS   = 0x20
     28   } TASK_CREATION;
     29 
     30   typedef enum _TASK_ENUM_HIDDEN {
     31     TASK_ENUM_HIDDEN   = 0x1
     32   } TASK_ENUM_FLAGS;
     33 
     34   typedef enum _TASK_INSTANCES_POLICY {
     35     TASK_INSTANCES_PARALLEL        = 0,
     36     TASK_INSTANCES_QUEUE           = 1,
     37     TASK_INSTANCES_IGNORE_NEW      = 2,
     38     TASK_INSTANCES_STOP_EXISTING   = 3
     39   } TASK_INSTANCES_POLICY;
     40 
     41   typedef enum _TASK_LOGON_TYPE {
     42     TASK_LOGON_NONE                            = 0,
     43     TASK_LOGON_PASSWORD                        = 1,
     44     TASK_LOGON_S4U                             = 2,
     45     TASK_LOGON_INTERACTIVE_TOKEN               = 3,
     46     TASK_LOGON_GROUP                           = 4,
     47     TASK_LOGON_SERVICE_ACCOUNT                 = 5,
     48     TASK_LOGON_INTERACTIVE_TOKEN_OR_PASSWORD   = 6
     49   } TASK_LOGON_TYPE;
     50 
     51   typedef enum _TASK_RUN_FLAGS {
     52     TASK_RUN_NO_FLAGS              = 0x0,
     53     TASK_RUN_AS_SELF               = 0x1,
     54     TASK_RUN_IGNORE_CONSTRAINTS    = 0x2,
     55     TASK_RUN_USE_SESSION_ID        = 0x4,
     56     TASK_RUN_USER_SID              = 0x8
     57   } TASK_RUN_FLAGS;
     58 
     59   typedef enum _TASK_RUNLEVEL_TYPE {
     60     TASK_RUNLEVEL_LUA       = 0,
     61     TASK_RUNLEVEL_HIGHEST   = 1
     62   } TASK_RUNLEVEL_TYPE;
     63 
     64   typedef enum _TASK_SESSION_STATE_CHANGE_TYPE {
     65     TASK_CONSOLE_CONNECT      = 1,
     66     TASK_CONSOLE_DISCONNECT   = 2,
     67     TASK_REMOTE_CONNECT       = 3,
     68     TASK_REMOTE_DISCONNECT    = 4,
     69     TASK_SESSION_LOCK         = 7,
     70     TASK_SESSION_UNLOCK       = 8
     71   } TASK_SESSION_STATE_CHANGE_TYPE;
     72 
     73   typedef enum _TASK_STATE {
     74     TASK_STATE_UNKNOWN    = 0,
     75     TASK_STATE_DISABLED   = 1,
     76     TASK_STATE_QUEUED     = 2,
     77     TASK_STATE_READY      = 3,
     78     TASK_STATE_RUNNING    = 4
     79   } TASK_STATE;
     80 
     81   typedef enum _TASK_TRIGGER_TYPE2 {
     82     TASK_TRIGGER_EVENT                  = 0,
     83     TASK_TRIGGER_TIME                   = 1,
     84     TASK_TRIGGER_DAILY                  = 2,
     85     TASK_TRIGGER_WEEKLY                 = 3,
     86     TASK_TRIGGER_MONTHLY                = 4,
     87     TASK_TRIGGER_MONTHLYDOW             = 5,
     88     TASK_TRIGGER_IDLE                   = 6,
     89     TASK_TRIGGER_REGISTRATION           = 7,
     90     TASK_TRIGGER_BOOT                   = 8,
     91     TASK_TRIGGER_LOGON                  = 9,
     92     TASK_TRIGGER_SESSION_STATE_CHANGE   = 11
     93   } TASK_TRIGGER_TYPE2;
     94 
     95 #ifdef __cplusplus
     96 }
     97 #endif
     98 
     99 #endif /*(_WIN32_WINNT >= 0x0600)*/
    100 #endif /*_INC_TASKSCHD*/
    101