summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys-0.28.0/src/Windows/Win32/System/TaskScheduler/mod.rs
blob: c4882dce1bc41c0c579853e985a3e8fc9ce66247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[link(name = "windows")]
extern "system" {}
pub const CLSID_CTask: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 344708384, data2: 41643, data3: 4558, data4: [177, 31, 0, 170, 0, 83, 5, 3] };
pub const CLSID_CTaskScheduler: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 344708394, data2: 41643, data3: 4558, data4: [177, 31, 0, 170, 0, 83, 5, 3] };
#[repr(C)]
pub struct DAILY {
    pub DaysInterval: u16,
}
impl ::core::marker::Copy for DAILY {}
impl ::core::clone::Clone for DAILY {
    fn clone(&self) -> Self {
        *self
    }
}
pub type IAction = *mut ::core::ffi::c_void;
pub type IActionCollection = *mut ::core::ffi::c_void;
pub type IBootTrigger = *mut ::core::ffi::c_void;
pub type IComHandlerAction = *mut ::core::ffi::c_void;
pub type IDailyTrigger = *mut ::core::ffi::c_void;
pub type IEmailAction = *mut ::core::ffi::c_void;
pub type IEnumWorkItems = *mut ::core::ffi::c_void;
pub type IEventTrigger = *mut ::core::ffi::c_void;
pub type IExecAction = *mut ::core::ffi::c_void;
pub type IExecAction2 = *mut ::core::ffi::c_void;
pub type IIdleSettings = *mut ::core::ffi::c_void;
pub type IIdleTrigger = *mut ::core::ffi::c_void;
pub type ILogonTrigger = *mut ::core::ffi::c_void;
pub type IMaintenanceSettings = *mut ::core::ffi::c_void;
pub type IMonthlyDOWTrigger = *mut ::core::ffi::c_void;
pub type IMonthlyTrigger = *mut ::core::ffi::c_void;
pub type INetworkSettings = *mut ::core::ffi::c_void;
pub type IPrincipal = *mut ::core::ffi::c_void;
pub type IPrincipal2 = *mut ::core::ffi::c_void;
pub type IProvideTaskPage = *mut ::core::ffi::c_void;
pub type IRegisteredTask = *mut ::core::ffi::c_void;
pub type IRegisteredTaskCollection = *mut ::core::ffi::c_void;
pub type IRegistrationInfo = *mut ::core::ffi::c_void;
pub type IRegistrationTrigger = *mut ::core::ffi::c_void;
pub type IRepetitionPattern = *mut ::core::ffi::c_void;
pub type IRunningTask = *mut ::core::ffi::c_void;
pub type IRunningTaskCollection = *mut ::core::ffi::c_void;
pub type IScheduledWorkItem = *mut ::core::ffi::c_void;
pub type ISessionStateChangeTrigger = *mut ::core::ffi::c_void;
pub type IShowMessageAction = *mut ::core::ffi::c_void;
pub type ITask = *mut ::core::ffi::c_void;
pub type ITaskDefinition = *mut ::core::ffi::c_void;
pub type ITaskFolder = *mut ::core::ffi::c_void;
pub type ITaskFolderCollection = *mut ::core::ffi::c_void;
pub type ITaskHandler = *mut ::core::ffi::c_void;
pub type ITaskHandlerStatus = *mut ::core::ffi::c_void;
pub type ITaskNamedValueCollection = *mut ::core::ffi::c_void;
pub type ITaskNamedValuePair = *mut ::core::ffi::c_void;
pub type ITaskScheduler = *mut ::core::ffi::c_void;
pub type ITaskService = *mut ::core::ffi::c_void;
pub type ITaskSettings = *mut ::core::ffi::c_void;
pub type ITaskSettings2 = *mut ::core::ffi::c_void;
pub type ITaskSettings3 = *mut ::core::ffi::c_void;
pub type ITaskTrigger = *mut ::core::ffi::c_void;
pub type ITaskVariables = *mut ::core::ffi::c_void;
pub type ITimeTrigger = *mut ::core::ffi::c_void;
pub type ITrigger = *mut ::core::ffi::c_void;
pub type ITriggerCollection = *mut ::core::ffi::c_void;
pub type IWeeklyTrigger = *mut ::core::ffi::c_void;
#[repr(C)]
pub struct MONTHLYDATE {
    pub rgfDays: u32,
    pub rgfMonths: u16,
}
impl ::core::marker::Copy for MONTHLYDATE {}
impl ::core::clone::Clone for MONTHLYDATE {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct MONTHLYDOW {
    pub wWhichWeek: u16,
    pub rgfDaysOfTheWeek: u16,
    pub rgfMonths: u16,
}
impl ::core::marker::Copy for MONTHLYDOW {}
impl ::core::clone::Clone for MONTHLYDOW {
    fn clone(&self) -> Self {
        *self
    }
}
pub type TASKPAGE = i32;
pub const TASKPAGE_TASK: TASKPAGE = 0i32;
pub const TASKPAGE_SCHEDULE: TASKPAGE = 1i32;
pub const TASKPAGE_SETTINGS: TASKPAGE = 2i32;
pub type TASK_ACTION_TYPE = i32;
pub const TASK_ACTION_EXEC: TASK_ACTION_TYPE = 0i32;
pub const TASK_ACTION_COM_HANDLER: TASK_ACTION_TYPE = 5i32;
pub const TASK_ACTION_SEND_EMAIL: TASK_ACTION_TYPE = 6i32;
pub const TASK_ACTION_SHOW_MESSAGE: TASK_ACTION_TYPE = 7i32;
pub const TASK_APRIL: u32 = 8u32;
pub const TASK_AUGUST: u32 = 128u32;
pub type TASK_COMPATIBILITY = i32;
pub const TASK_COMPATIBILITY_AT: TASK_COMPATIBILITY = 0i32;
pub const TASK_COMPATIBILITY_V1: TASK_COMPATIBILITY = 1i32;
pub const TASK_COMPATIBILITY_V2: TASK_COMPATIBILITY = 2i32;
pub const TASK_COMPATIBILITY_V2_1: TASK_COMPATIBILITY = 3i32;
pub const TASK_COMPATIBILITY_V2_2: TASK_COMPATIBILITY = 4i32;
pub const TASK_COMPATIBILITY_V2_3: TASK_COMPATIBILITY = 5i32;
pub const TASK_COMPATIBILITY_V2_4: TASK_COMPATIBILITY = 6i32;
pub type TASK_CREATION = i32;
pub const TASK_VALIDATE_ONLY: TASK_CREATION = 1i32;
pub const TASK_CREATE: TASK_CREATION = 2i32;
pub const TASK_UPDATE: TASK_CREATION = 4i32;
pub const TASK_CREATE_OR_UPDATE: TASK_CREATION = 6i32;
pub const TASK_DISABLE: TASK_CREATION = 8i32;
pub const TASK_DONT_ADD_PRINCIPAL_ACE: TASK_CREATION = 16i32;
pub const TASK_IGNORE_REGISTRATION_TRIGGERS: TASK_CREATION = 32i32;
pub const TASK_DECEMBER: u32 = 2048u32;
pub type TASK_ENUM_FLAGS = i32;
pub const TASK_ENUM_HIDDEN: TASK_ENUM_FLAGS = 1i32;
pub const TASK_FEBRUARY: u32 = 2u32;
pub const TASK_FIRST_WEEK: u32 = 1u32;
pub const TASK_FLAG_DELETE_WHEN_DONE: u32 = 2u32;
pub const TASK_FLAG_DISABLED: u32 = 4u32;
pub const TASK_FLAG_DONT_START_IF_ON_BATTERIES: u32 = 64u32;
pub const TASK_FLAG_HIDDEN: u32 = 512u32;
pub const TASK_FLAG_INTERACTIVE: u32 = 1u32;
pub const TASK_FLAG_KILL_IF_GOING_ON_BATTERIES: u32 = 128u32;
pub const TASK_FLAG_KILL_ON_IDLE_END: u32 = 32u32;
pub const TASK_FLAG_RESTART_ON_IDLE_RESUME: u32 = 2048u32;
pub const TASK_FLAG_RUN_IF_CONNECTED_TO_INTERNET: u32 = 1024u32;
pub const TASK_FLAG_RUN_ONLY_IF_DOCKED: u32 = 256u32;
pub const TASK_FLAG_RUN_ONLY_IF_LOGGED_ON: u32 = 8192u32;
pub const TASK_FLAG_START_ONLY_IF_IDLE: u32 = 16u32;
pub const TASK_FLAG_SYSTEM_REQUIRED: u32 = 4096u32;
pub const TASK_FOURTH_WEEK: u32 = 4u32;
pub const TASK_FRIDAY: u32 = 32u32;
pub type TASK_INSTANCES_POLICY = i32;
pub const TASK_INSTANCES_PARALLEL: TASK_INSTANCES_POLICY = 0i32;
pub const TASK_INSTANCES_QUEUE: TASK_INSTANCES_POLICY = 1i32;
pub const TASK_INSTANCES_IGNORE_NEW: TASK_INSTANCES_POLICY = 2i32;
pub const TASK_INSTANCES_STOP_EXISTING: TASK_INSTANCES_POLICY = 3i32;
pub const TASK_JANUARY: u32 = 1u32;
pub const TASK_JULY: u32 = 64u32;
pub const TASK_JUNE: u32 = 32u32;
pub const TASK_LAST_WEEK: u32 = 5u32;
pub type TASK_LOGON_TYPE = i32;
pub const TASK_LOGON_NONE: TASK_LOGON_TYPE = 0i32;
pub const TASK_LOGON_PASSWORD: TASK_LOGON_TYPE = 1i32;
pub const TASK_LOGON_S4U: TASK_LOGON_TYPE = 2i32;
pub const TASK_LOGON_INTERACTIVE_TOKEN: TASK_LOGON_TYPE = 3i32;
pub const TASK_LOGON_GROUP: TASK_LOGON_TYPE = 4i32;
pub const TASK_LOGON_SERVICE_ACCOUNT: TASK_LOGON_TYPE = 5i32;
pub const TASK_LOGON_INTERACTIVE_TOKEN_OR_PASSWORD: TASK_LOGON_TYPE = 6i32;
pub const TASK_MARCH: u32 = 4u32;
pub const TASK_MAX_RUN_TIMES: u32 = 1440u32;
pub const TASK_MAY: u32 = 16u32;
pub const TASK_MONDAY: u32 = 2u32;
pub const TASK_NOVEMBER: u32 = 1024u32;
pub const TASK_OCTOBER: u32 = 512u32;
pub type TASK_PROCESSTOKENSID_TYPE = i32;
pub const TASK_PROCESSTOKENSID_NONE: TASK_PROCESSTOKENSID_TYPE = 0i32;
pub const TASK_PROCESSTOKENSID_UNRESTRICTED: TASK_PROCESSTOKENSID_TYPE = 1i32;
pub const TASK_PROCESSTOKENSID_DEFAULT: TASK_PROCESSTOKENSID_TYPE = 2i32;
pub type TASK_RUNLEVEL_TYPE = i32;
pub const TASK_RUNLEVEL_LUA: TASK_RUNLEVEL_TYPE = 0i32;
pub const TASK_RUNLEVEL_HIGHEST: TASK_RUNLEVEL_TYPE = 1i32;
pub type TASK_RUN_FLAGS = i32;
pub const TASK_RUN_NO_FLAGS: TASK_RUN_FLAGS = 0i32;
pub const TASK_RUN_AS_SELF: TASK_RUN_FLAGS = 1i32;
pub const TASK_RUN_IGNORE_CONSTRAINTS: TASK_RUN_FLAGS = 2i32;
pub const TASK_RUN_USE_SESSION_ID: TASK_RUN_FLAGS = 4i32;
pub const TASK_RUN_USER_SID: TASK_RUN_FLAGS = 8i32;
pub const TASK_SATURDAY: u32 = 64u32;
pub const TASK_SECOND_WEEK: u32 = 2u32;
pub const TASK_SEPTEMBER: u32 = 256u32;
pub type TASK_SESSION_STATE_CHANGE_TYPE = i32;
pub const TASK_CONSOLE_CONNECT: TASK_SESSION_STATE_CHANGE_TYPE = 1i32;
pub const TASK_CONSOLE_DISCONNECT: TASK_SESSION_STATE_CHANGE_TYPE = 2i32;
pub const TASK_REMOTE_CONNECT: TASK_SESSION_STATE_CHANGE_TYPE = 3i32;
pub const TASK_REMOTE_DISCONNECT: TASK_SESSION_STATE_CHANGE_TYPE = 4i32;
pub const TASK_SESSION_LOCK: TASK_SESSION_STATE_CHANGE_TYPE = 7i32;
pub const TASK_SESSION_UNLOCK: TASK_SESSION_STATE_CHANGE_TYPE = 8i32;
pub type TASK_STATE = i32;
pub const TASK_STATE_UNKNOWN: TASK_STATE = 0i32;
pub const TASK_STATE_DISABLED: TASK_STATE = 1i32;
pub const TASK_STATE_QUEUED: TASK_STATE = 2i32;
pub const TASK_STATE_READY: TASK_STATE = 3i32;
pub const TASK_STATE_RUNNING: TASK_STATE = 4i32;
pub const TASK_SUNDAY: u32 = 1u32;
pub const TASK_THIRD_WEEK: u32 = 3u32;
pub const TASK_THURSDAY: u32 = 16u32;
#[repr(C)]
pub struct TASK_TRIGGER {
    pub cbTriggerSize: u16,
    pub Reserved1: u16,
    pub wBeginYear: u16,
    pub wBeginMonth: u16,
    pub wBeginDay: u16,
    pub wEndYear: u16,
    pub wEndMonth: u16,
    pub wEndDay: u16,
    pub wStartHour: u16,
    pub wStartMinute: u16,
    pub MinutesDuration: u32,
    pub MinutesInterval: u32,
    pub rgFlags: u32,
    pub TriggerType: TASK_TRIGGER_TYPE,
    pub Type: TRIGGER_TYPE_UNION,
    pub Reserved2: u16,
    pub wRandomMinutesInterval: u16,
}
impl ::core::marker::Copy for TASK_TRIGGER {}
impl ::core::clone::Clone for TASK_TRIGGER {
    fn clone(&self) -> Self {
        *self
    }
}
pub const TASK_TRIGGER_FLAG_DISABLED: u32 = 4u32;
pub const TASK_TRIGGER_FLAG_HAS_END_DATE: u32 = 1u32;
pub const TASK_TRIGGER_FLAG_KILL_AT_DURATION_END: u32 = 2u32;
pub type TASK_TRIGGER_TYPE = i32;
pub const TASK_TIME_TRIGGER_ONCE: TASK_TRIGGER_TYPE = 0i32;
pub const TASK_TIME_TRIGGER_DAILY: TASK_TRIGGER_TYPE = 1i32;
pub const TASK_TIME_TRIGGER_WEEKLY: TASK_TRIGGER_TYPE = 2i32;
pub const TASK_TIME_TRIGGER_MONTHLYDATE: TASK_TRIGGER_TYPE = 3i32;
pub const TASK_TIME_TRIGGER_MONTHLYDOW: TASK_TRIGGER_TYPE = 4i32;
pub const TASK_EVENT_TRIGGER_ON_IDLE: TASK_TRIGGER_TYPE = 5i32;
pub const TASK_EVENT_TRIGGER_AT_SYSTEMSTART: TASK_TRIGGER_TYPE = 6i32;
pub const TASK_EVENT_TRIGGER_AT_LOGON: TASK_TRIGGER_TYPE = 7i32;
pub type TASK_TRIGGER_TYPE2 = i32;
pub const TASK_TRIGGER_EVENT: TASK_TRIGGER_TYPE2 = 0i32;
pub const TASK_TRIGGER_TIME: TASK_TRIGGER_TYPE2 = 1i32;
pub const TASK_TRIGGER_DAILY: TASK_TRIGGER_TYPE2 = 2i32;
pub const TASK_TRIGGER_WEEKLY: TASK_TRIGGER_TYPE2 = 3i32;
pub const TASK_TRIGGER_MONTHLY: TASK_TRIGGER_TYPE2 = 4i32;
pub const TASK_TRIGGER_MONTHLYDOW: TASK_TRIGGER_TYPE2 = 5i32;
pub const TASK_TRIGGER_IDLE: TASK_TRIGGER_TYPE2 = 6i32;
pub const TASK_TRIGGER_REGISTRATION: TASK_TRIGGER_TYPE2 = 7i32;
pub const TASK_TRIGGER_BOOT: TASK_TRIGGER_TYPE2 = 8i32;
pub const TASK_TRIGGER_LOGON: TASK_TRIGGER_TYPE2 = 9i32;
pub const TASK_TRIGGER_SESSION_STATE_CHANGE: TASK_TRIGGER_TYPE2 = 11i32;
pub const TASK_TRIGGER_CUSTOM_TRIGGER_01: TASK_TRIGGER_TYPE2 = 12i32;
pub const TASK_TUESDAY: u32 = 4u32;
pub const TASK_WEDNESDAY: u32 = 8u32;
#[repr(C)]
pub union TRIGGER_TYPE_UNION {
    pub Daily: DAILY,
    pub Weekly: WEEKLY,
    pub MonthlyDate: MONTHLYDATE,
    pub MonthlyDOW: MONTHLYDOW,
}
impl ::core::marker::Copy for TRIGGER_TYPE_UNION {}
impl ::core::clone::Clone for TRIGGER_TYPE_UNION {
    fn clone(&self) -> Self {
        *self
    }
}
pub const TaskHandlerPS: ::windows_sys::core::GUID = ::windows_sys::core::GUID {
    data1: 4071005623,
    data2: 55852,
    data3: 17234,
    data4: [144, 102, 134, 254, 230, 218, 202, 201],
};
pub const TaskHandlerStatusPS: ::windows_sys::core::GUID = ::windows_sys::core::GUID {
    data1: 2668963437,
    data2: 55226,
    data3: 18672,
    data4: [147, 193, 230, 137, 95, 111, 229, 172],
};
pub const TaskScheduler: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 260519583, data2: 42213, data3: 19708, data4: [189, 62, 115, 230, 21, 69, 114, 221] };
#[repr(C)]
pub struct WEEKLY {
    pub WeeksInterval: u16,
    pub rgfDaysOfTheWeek: u16,
}
impl ::core::marker::Copy for WEEKLY {}
impl ::core::clone::Clone for WEEKLY {
    fn clone(&self) -> Self {
        *self
    }
}