Debian Codegraph @

mingw-w64-headers/include/taskschd.idl

raw
1 /*
2 * Task Scheduler definitions
3 *
4 * Copyright 2013 Dmitry Timoshkov
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21 import "oaidl.idl";
22 import "ocidl.idl";
23
24 [
25 uuid(e34cb9f1-c7f7-424c-be29-027dcc09363a),
26 version(1.0)
27 ]
28 library TaskScheduler
29 {
30 importlib("stdole2.tlb");
31
32 typedef enum _TASK_STATE
33 {
34 TASK_STATE_UNKNOWN,
35 TASK_STATE_DISABLED,
36 TASK_STATE_QUEUED,
37 TASK_STATE_READY,
38 TASK_STATE_RUNNING
39 } TASK_STATE;
40
41 typedef enum _TASK_ENUM_FLAGS
42 {
43 TASK_ENUM_HIDDEN = 0x0001
44 } TASK_ENUM_FLAGS;
45
46 typedef enum _TASK_LOGON_TYPE
47 {
48 TASK_LOGON_NONE,
49 TASK_LOGON_PASSWORD,
50 TASK_LOGON_S4U,
51 TASK_LOGON_INTERACTIVE_TOKEN,
52 TASK_LOGON_GROUP,
53 TASK_LOGON_SERVICE_ACCOUNT,
54 TASK_LOGON_INTERACTIVE_TOKEN_OR_PASSWORD
55 } TASK_LOGON_TYPE;
56
57 typedef enum _TASK_RUNLEVEL
58 {
59 TASK_RUNLEVEL_LUA,
60 TASK_RUNLEVEL_HIGHEST
61 } TASK_RUNLEVEL_TYPE;
62
63 typedef enum _TASK_TRIGGER_TYPE2
64 {
65 TASK_TRIGGER_EVENT,
66 TASK_TRIGGER_TIME,
67 TASK_TRIGGER_DAILY,
68 TASK_TRIGGER_WEEKLY,
69 TASK_TRIGGER_MONTHLY,
70 TASK_TRIGGER_MONTHLYDOW,
71 TASK_TRIGGER_IDLE,
72 TASK_TRIGGER_REGISTRATION,
73 TASK_TRIGGER_BOOT,
74 TASK_TRIGGER_LOGON,
75 TASK_TRIGGER_SESSION_STATE_CHANGE = 11,
76 TASK_TRIGGER_CUSTOM_TRIGGER_01
77 } TASK_TRIGGER_TYPE2;
78
79 typedef enum _TASK_SESSION_STATE_CHANGE_TYPE
80 {
81 TASK_CONSOLE_CONNECT = 1,
82 TASK_CONSOLE_DISCONNECT,
83 TASK_REMOTE_CONNECT,
84 TASK_REMOTE_DISCONNECT,
85 TASK_SESSION_LOCK = 7,
86 TASK_SESSION_UNLOCK
87 } TASK_SESSION_STATE_CHANGE_TYPE;
88
89 typedef enum _TASK_ACTION_TYPE
90 {
91 TASK_ACTION_EXEC = 0,
92 TASK_ACTION_COM_HANDLER = 5,
93 TASK_ACTION_SEND_EMAIL = 6,
94 TASK_ACTION_SHOW_MESSAGE = 7
95 } TASK_ACTION_TYPE;
96
97 typedef enum _TASK_INSTANCES_POLICY
98 {
99 TASK_INSTANCES_PARALLEL,
100 TASK_INSTANCES_QUEUE,
101 TASK_INSTANCES_IGNORE_NEW,
102 TASK_INSTANCES_STOP_EXISTING
103 } TASK_INSTANCES_POLICY;
104
105 typedef enum _TASK_COMPATIBILITY
106 {
107 TASK_COMPATIBILITY_AT,
108 TASK_COMPATIBILITY_V1,
109 TASK_COMPATIBILITY_V2,
110 TASK_COMPATIBILITY_V2_1,
111 TASK_COMPATIBILITY_V2_2,
112 TASK_COMPATIBILITY_V2_3,
113 TASK_COMPATIBILITY_V2_4
114 } TASK_COMPATIBILITY;
115
116 typedef enum _TASK_CREATION
117 {
118 TASK_VALIDATE_ONLY = 1,
119 TASK_CREATE = 2,
120 TASK_UPDATE = 4,
121 TASK_CREATE_OR_UPDATE = 6,
122 TASK_DISABLE = 8,
123 TASK_DONT_ADD_PRINCIPAL_ACE = 16,
124 TASK_IGNORE_REGISTRATION_TRIGGERS = 32
125 } TASK_CREATION;
126
127 interface ITaskService;
128 interface IRegisteredTask;
129 interface IRegisteredTaskCollection;
130 interface IRegistrationInfo;
131 interface ITaskFolder;
132 interface ITaskFolderCollection;
133 interface ITaskDefinition;
134 interface ITaskSettings;
135 interface IIdleSettings;
136 interface IRunningTask;
137 interface IRunningTaskCollection;
138 interface ITaskNamedValuePair;
139 interface ITaskNamedValueCollection;
140 interface ITrigger;
141 interface ITriggerCollection;
142 interface IIdleTrigger;
143 interface ILogonTrigger;
144 interface ISessionStateChangeTrigger;
145 interface IEventTrigger;
146 interface ITimeTrigger;
147 interface IDailyTrigger;
148 interface IWeeklyTrigger;
149 interface IMonthlyTrigger;
150 interface IMonthlyDOWTrigger;
151 interface IBootTrigger;
152 interface IRegistrationTrigger;
153 interface IRepetitionPattern;
154 interface IAction;
155 interface IActionCollection;
156 interface IExecAction;
157 interface INetworkSettings;
158 interface IPrincipal;
159
160 [
161 object,
162 oleautomation,
163 uuid(2faba4c7-4da9-4013-9697-20cc3fd40f85)
164 ]
165 interface ITaskService : IDispatch
166 {
167 HRESULT GetFolder([in] BSTR path, [out, retval] ITaskFolder **folder );
168 HRESULT GetRunningTasks([in] LONG flags, [out, retval] IRunningTaskCollection **tasks );
169 HRESULT NewTask([in] DWORD flags, [out, retval] ITaskDefinition **definition );
170 HRESULT Connect([in, optional] VARIANT server, [in, optional] VARIANT user, [in, optional] VARIANT domain, [in, optional] VARIANT password);
171 [propget] HRESULT Connected([out, retval] VARIANT_BOOL *connected);
172 [propget] HRESULT TargetServer([out, retval] BSTR *server);
173 [propget] HRESULT ConnectedUser([out, retval] BSTR *user);
174 [propget] HRESULT ConnectedDomain([out, retval] BSTR *domain);
175 [propget] HRESULT HighestVersion([out, retval] DWORD *version);
176 }
177
178 [
179 object,
180 oleautomation,
181 uuid(9c86f320-dee3-4dd1-b972-a303f26b061e)
182 ]
183 interface IRegisteredTask : IDispatch
184 {
185 [propget] HRESULT Name([out, retval] BSTR *name);
186 [propget] HRESULT Path([out, retval] BSTR *path);
187 [propget] HRESULT State([out, retval] TASK_STATE *state);
188 [propget] HRESULT Enabled([out, retval] VARIANT_BOOL *enabled);
189 [propput] HRESULT Enabled(VARIANT_BOOL enabled);
190 HRESULT Run([in] VARIANT params, [out, retval] IRunningTask **task);
191 HRESULT RunEx([in] VARIANT params, [in] LONG flags, [in] LONG sessionID, [in] BSTR user, [out, retval] IRunningTask **task);
192 HRESULT GetInstances([in] LONG flags, [out, retval] IRunningTaskCollection **tasks);
193 [propget] HRESULT LastRunTime([out, retval] DATE *date);
194 [propget] HRESULT LastTaskResult([out, retval] LONG *result);
195 [propget] HRESULT NumberOfMissedRuns([out, retval] LONG *runs);
196 [propget] HRESULT NextRunTime([out, retval] DATE *date);
197 [propget] HRESULT Definition([out, retval] ITaskDefinition **task);
198 [propget] HRESULT Xml([out, retval] BSTR *xml);
199 HRESULT GetSecurityDescriptor([in] LONG info, [out, retval] BSTR *sddl);
200 HRESULT SetSecurityDescriptor([in] BSTR sddl, [in] LONG flags);
201 HRESULT Stop([in] LONG flags);
202 HRESULT GetRunTimes([in] const LPSYSTEMTIME start, [in] const LPSYSTEMTIME end, [in, out] DWORD *count, [out] LPSYSTEMTIME *time);
203 }
204
205 [
206 object,
207 oleautomation,
208 uuid(86627eb4-42a7-41e4-a4d9-ac33a72f2d52)
209 ]
210 interface IRegisteredTaskCollection : IDispatch
211 {
212 [propget] HRESULT Count([out, retval] LONG *count);
213 [propget] HRESULT Item([in] VARIANT index, [out, retval] IRegisteredTask **task);
214 [propget] HRESULT _NewEnum([out, retval] IUnknown **penum);
215 }
216
217 [
218 object,
219 oleautomation,
220 uuid(416d8b73-cb41-4ea1-805c-9be9a5ac4a74)
221 ]
222 interface IRegistrationInfo : IDispatch
223 {
224 [propget] HRESULT Description([out, retval] BSTR *description);
225 [propput] HRESULT Description([in] BSTR description);
226 [propget] HRESULT Author([out, retval] BSTR *author);
227 [propput] HRESULT Author([in] BSTR author);
228 [propget] HRESULT Version([out, retval] BSTR *version);
229 [propput] HRESULT Version([in] BSTR version);
230 [propget] HRESULT Date([out, retval] BSTR *date);
231 [propput] HRESULT Date([in] BSTR date);
232 [propget] HRESULT Documentation([out, retval] BSTR *doc);
233 [propput] HRESULT Documentation([in] BSTR doc);
234 [propget] HRESULT XmlText([out, retval] BSTR *xml);
235 [propput] HRESULT XmlText([in] BSTR xml);
236 [propget] HRESULT URI([out, retval] BSTR *uri);
237 [propput] HRESULT URI([in] BSTR uri);
238 [propget] HRESULT SecurityDescriptor([out, retval] VARIANT *sddl);
239 [propput] HRESULT SecurityDescriptor([in] VARIANT sddl);
240 [propget] HRESULT Source([out, retval] BSTR *source);
241 [propput] HRESULT Source([in] BSTR source);
242 }
243
244 [
245 object,
246 oleautomation,
247 uuid(8cfac062-a080-4c15-9a88-aa7c2af80dfc)
248 ]
249 interface ITaskFolder : IDispatch
250 {
251 [propget] HRESULT Name([out, retval] BSTR *name);
252 [propget] HRESULT Path([out, retval] BSTR *path);
253 HRESULT GetFolder([in] BSTR path, [out, retval] ITaskFolder **folder);
254 HRESULT GetFolders([in] LONG flags, [out, retval] ITaskFolderCollection **folders);
255 HRESULT CreateFolder([in] BSTR name, [in] VARIANT sddl, [out, retval] ITaskFolder **folder);
256 HRESULT DeleteFolder([in] BSTR name, [in] LONG flags);
257 HRESULT GetTask([in] BSTR path, [out, retval] IRegisteredTask **task);
258 HRESULT GetTasks([in] LONG flags, [out, retval] IRegisteredTaskCollection **tasks);
259 HRESULT DeleteTask([in] BSTR name, [in] LONG flags);
260 HRESULT RegisterTask([in] BSTR path, [in] BSTR xml, [in] LONG flags, [in] VARIANT user, [in] VARIANT password,
261 [in] TASK_LOGON_TYPE logonType, [in] VARIANT sddl, [out, retval] IRegisteredTask **task);
262 HRESULT RegisterTaskDefinition([in] BSTR path, [in] ITaskDefinition *definition, [in] LONG flags,
263 [in] VARIANT user, [in] VARIANT password, [in] TASK_LOGON_TYPE logon,
264 [in] VARIANT sddl, [out, retval] IRegisteredTask **task);
265 HRESULT GetSecurityDescriptor(LONG info, [out, retval] BSTR *sddl);
266 HRESULT SetSecurityDescriptor([in] BSTR sddl, [in] LONG flags);
267 }
268
269 [
270 object,
271 oleautomation,
272 uuid(79184a66-8664-423f-97f1-637356a5d812)
273 ]
274 interface ITaskFolderCollection : IDispatch
275 {
276 [propget] HRESULT Count([out, retval] LONG *count);
277 [propget] HRESULT Item([in] VARIANT index, [out, retval] ITaskFolder **folder);
278 [propget] HRESULT _NewEnum([out, retval] IUnknown **penum);
279 }
280
281 [
282 object,
283 oleautomation,
284 uuid(f5bc8fc5-536d-4f77-b852-fbc1356fdeb6)
285 ]
286 interface ITaskDefinition : IDispatch
287 {
288 [propget] HRESULT RegistrationInfo([out, retval] IRegistrationInfo **info);
289 [propput] HRESULT RegistrationInfo([in] IRegistrationInfo *info);
290 [propget] HRESULT Triggers([out, retval] ITriggerCollection **triggers);
291 [propput] HRESULT Triggers([in] ITriggerCollection *triggers);
292 [propget] HRESULT Settings([out, retval] ITaskSettings **settings);
293 [propput] HRESULT Settings([in] ITaskSettings *settings);
294 [propget] HRESULT Data([out, retval] BSTR *data);
295 [propput] HRESULT Data([in] BSTR data);
296 [propget] HRESULT Principal([out, retval] IPrincipal **principal);
297 [propput] HRESULT Principal([in] IPrincipal *principal);
298 [propget] HRESULT Actions([out, retval] IActionCollection **actions);
299 [propput] HRESULT Actions([in] IActionCollection *actions);
300 [propget] HRESULT XmlText([out, retval] BSTR *xml);
301 [propput] HRESULT XmlText([in] BSTR xml);
302 }
303
304 [
305 object,
306 oleautomation,
307 uuid(8fd4711d-2d02-4c8c-87e3-eff699de127e)
308 ]
309 interface ITaskSettings : IDispatch
310 {
311 [propget] HRESULT AllowDemandStart([out, retval] VARIANT_BOOL *allow);
312 [propput] HRESULT AllowDemandStart([in] VARIANT_BOOL allow);
313 [propget] HRESULT RestartInterval([out, retval] BSTR *interval);
314 [propput] HRESULT RestartInterval([in] BSTR interval);
315 [propget] HRESULT RestartCount([out, retval] INT *count);
316 [propput] HRESULT RestartCount([in] INT count);
317 [propget] HRESULT MultipleInstances([out, retval] TASK_INSTANCES_POLICY *policy);
318 [propput] HRESULT MultipleInstances([in] TASK_INSTANCES_POLICY policy);
319 [propget] HRESULT StopIfGoingOnBatteries([out, retval] VARIANT_BOOL *stop);
320 [propput] HRESULT StopIfGoingOnBatteries([in] VARIANT_BOOL stop);
321 [propget] HRESULT DisallowStartIfOnBatteries([out, retval] VARIANT_BOOL *disallow);
322 [propput] HRESULT DisallowStartIfOnBatteries([in] VARIANT_BOOL disallow);
323 [propget] HRESULT AllowHardTerminate([out, retval] VARIANT_BOOL *allow);
324 [propput] HRESULT AllowHardTerminate([in] VARIANT_BOOL allow);
325 [propget] HRESULT StartWhenAvailable([out, retval] VARIANT_BOOL *start);
326 [propput] HRESULT StartWhenAvailable([in] VARIANT_BOOL start);
327 [propget] HRESULT XmlText([out, retval] BSTR *xml);
328 [propput] HRESULT XmlText([in] BSTR xml);
329 [propget] HRESULT RunOnlyIfNetworkAvailable([out, retval] VARIANT_BOOL *run);
330 [propput] HRESULT RunOnlyIfNetworkAvailable([in] VARIANT_BOOL run);
331 [propget] HRESULT ExecutionTimeLimit([out, retval] BSTR *limit);
332 [propput] HRESULT ExecutionTimeLimit([in] BSTR limit);
333 [propget] HRESULT Enabled([out, retval] VARIANT_BOOL *enabled);
334 [propput] HRESULT Enabled([in] VARIANT_BOOL enabled);
335 [propget] HRESULT DeleteExpiredTaskAfter([out, retval] BSTR *delay);
336 [propput] HRESULT DeleteExpiredTaskAfter([in] BSTR delay);
337 [propget] HRESULT Priority([out, retval] INT *priority);
338 [propput] HRESULT Priority([in] INT priority);
339 [propget] HRESULT Compatibility([out, retval] TASK_COMPATIBILITY *level);
340 [propput] HRESULT Compatibility([in] TASK_COMPATIBILITY level);
341 [propget] HRESULT Hidden([out, retval] VARIANT_BOOL *hidden);
342 [propput] HRESULT Hidden([in] VARIANT_BOOL hidden);
343 [propget] HRESULT IdleSettings([out, retval] IIdleSettings **settings);
344 [propput] HRESULT IdleSettings([in] IIdleSettings *settings);
345 [propget] HRESULT RunOnlyIfIdle([out, retval] VARIANT_BOOL *run);
346 [propput] HRESULT RunOnlyIfIdle([in] VARIANT_BOOL run);
347 [propget] HRESULT WakeToRun([out, retval] VARIANT_BOOL *wake);
348 [propput] HRESULT WakeToRun([in] VARIANT_BOOL wake);
349 [propget] HRESULT NetworkSettings([out, retval] INetworkSettings **settings);
350 [propput] HRESULT NetworkSettings([in] INetworkSettings *settings);
351 }
352
353 [
354 object,
355 oleautomation,
356 uuid(84594461-0053-4342-a8fd-088fabf11f32)
357 ]
358 interface IIdleSettings : IDispatch
359 {
360 [propget] HRESULT IdleDuration([out, retval] BSTR *delay);
361 [propput] HRESULT IdleDuration([in] BSTR delay);
362 [propget] HRESULT WaitTimeout([out, retval] BSTR *timeout);
363 [propput] HRESULT WaitTimeout([in] BSTR timeout);
364 [propget] HRESULT StopOnIdleEnd([out, retval] VARIANT_BOOL *stop);
365 [propput] HRESULT StopOnIdleEnd([in] VARIANT_BOOL stop);
366 [propget] HRESULT RestartOnIdle([out, retval] VARIANT_BOOL *restart);
367 [propput] HRESULT RestartOnIdle([in] VARIANT_BOOL restart);
368 }
369
370 [
371 object,
372 oleautomation,
373 uuid(653758fb-7b9a-4f1e-a471-beeb8e9b834e)
374 ]
375 interface IRunningTask : IDispatch
376 {
377 [propget] HRESULT Name([out, retval] BSTR *name);
378 [propget] HRESULT InstanceGuid([out, retval] BSTR *guid);
379 [propget] HRESULT Path([out, retval] BSTR *path);
380 [propget] HRESULT State([out, retval] TASK_STATE *state);
381 [propget] HRESULT CurrentAction([out, retval] BSTR *name);
382 HRESULT Stop(void );
383 HRESULT Refresh(void );
384 [propget] HRESULT EnginePID([out, retval] DWORD *pid);
385 }
386
387 [
388 object,
389 oleautomation,
390 uuid(6a67614b-6828-4fec-aa54-6d52e8f1f2db)
391 ]
392 interface IRunningTaskCollection : IDispatch
393 {
394 [propget] HRESULT Count([out, retval] LONG *count);
395 [propget] HRESULT Item([in] VARIANT index, [out, retval] IRunningTask **task);
396 [propget] HRESULT _NewEnum([out, retval] IUnknown **penum);
397 }
398
399 [
400 object,
401 oleautomation,
402 dual,
403 nonextensible,
404 uuid(39038068-2b46-4afd-8662-7bb6f868d221)
405 ]
406 interface ITaskNamedValuePair : IDispatch
407 {
408 [propget] HRESULT Name([out, retval] BSTR *pName);
409 [propput] HRESULT Name([in] BSTR name);
410 [propget] HRESULT Value([out, retval] BSTR *pValue);
411 [propput] HRESULT Value([in] BSTR value);
412 }
413
414 [
415 object,
416 oleautomation,
417 dual,
418 nonextensible,
419 uuid(b4ef826b-63c3-46e4-a504-ef69e4f7ea4d)
420 ]
421 interface ITaskNamedValueCollection : IDispatch
422 {
423 [propget] HRESULT Count([out, retval] LONG *count);
424 [propget] HRESULT Item([in] VARIANT index, [out, retval] ITaskNamedValuePair **pair);
425 [propget] HRESULT _NewEnum([out, retval] IUnknown **penum);
426 HRESULT Create([in] BSTR name, [in] BSTR value, [out, retval] ITaskNamedValuePair **pair);
427 HRESULT Remove([in] LONG index);
428 HRESULT Clear();
429 }
430
431 [
432 object,
433 oleautomation,
434 uuid(09941815-ea89-4b5b-89e0-2a773801fac3)
435 ]
436 interface ITrigger : IDispatch
437 {
438 [propget] HRESULT Type([out, retval] TASK_TRIGGER_TYPE2 *type);
439 [propget] HRESULT Id([out, retval] BSTR *id);
440 [propput] HRESULT Id([in] BSTR id);
441 [propget] HRESULT Repetition([out, retval] IRepetitionPattern **repeat);
442 [propput] HRESULT Repetition([in] IRepetitionPattern *repeat);
443 [propget] HRESULT ExecutionTimeLimit([out, retval] BSTR *limit);
444 [propput] HRESULT ExecutionTimeLimit([in] BSTR limit);
445 [propget] HRESULT StartBoundary([out, retval] BSTR *start);
446 [propput] HRESULT StartBoundary([in] BSTR start);
447 [propget] HRESULT EndBoundary([out, retval] BSTR *end);
448 [propput] HRESULT EndBoundary([in] BSTR end);
449 [propget] HRESULT Enabled([out, retval] VARIANT_BOOL *enabled);
450 [propput] HRESULT Enabled([in] VARIANT_BOOL enabled);
451 }
452
453 [
454 uuid(d537d2b0-9fb3-4d34-9739-1ff5ce7b1ef3),
455 oleautomation,
456 dual,
457 nonextensible
458 ]
459 interface IIdleTrigger : ITrigger
460 {
461 }
462
463 [
464 uuid(72dade38-fae4-4b3e-baf4-5d009af02b1c),
465 oleautomation,
466 dual,
467 nonextensible
468 ]
469 interface ILogonTrigger : ITrigger
470 {
471 [propget] HRESULT Delay([out, retval] BSTR *pDelay);
472 [propput] HRESULT Delay([in] BSTR delay);
473 [propget] HRESULT UserId([out, retval] BSTR *pUser);
474 [propput] HRESULT UserId([in] BSTR user);
475 }
476
477 [
478 uuid(754da71b-4385-4475-9dd9-598294fa3641),
479 oleautomation,
480 dual,
481 nonextensible
482 ]
483 interface ISessionStateChangeTrigger : ITrigger
484 {
485 [propget] HRESULT Delay([out, retval] BSTR *pDelay);
486 [propput] HRESULT Delay([in] BSTR delay);
487 [propget] HRESULT UserId([out, retval] BSTR *pUser);
488 [propput] HRESULT UserId([in] BSTR user);
489 [propget] HRESULT StateChange([out, retval] TASK_SESSION_STATE_CHANGE_TYPE *pType);
490 [propput] HRESULT StateChange([in] TASK_SESSION_STATE_CHANGE_TYPE type);
491 }
492
493 [
494 uuid(d45b0167-9653-4eef-b94f-0732ca7af251),
495 oleautomation,
496 dual,
497 nonextensible
498 ]
499 interface IEventTrigger : ITrigger
500 {
501 [propget] HRESULT Subscription([out, retval] BSTR *pQuery);
502 [propput] HRESULT Subscription([in] BSTR query);
503 [propget] HRESULT Delay([out, retval] BSTR *pDelay);
504 [propput] HRESULT Delay([in] BSTR delay);
505 [propget] HRESULT ValueQueries([out, retval] ITaskNamedValueCollection **ppNamedXPaths);
506 [propput] HRESULT ValueQueries([in] ITaskNamedValueCollection *pNamedXPaths);
507 }
508
509 [
510 uuid(b45747e0-eba7-4276-9f29-85c5bb300006),
511 object,
512 oleautomation,
513 nonextensible
514 ]
515 interface ITimeTrigger : ITrigger
516 {
517 [propget] HRESULT RandomDelay([out, retval] BSTR *delay);
518 [propput] HRESULT RandomDelay([in] BSTR delay);
519 }
520
521 [
522 odl,
523 uuid(126c5cd8-b288-41d5-8dbf-e491446adc5c),
524 oleautomation,
525 dual,
526 nonextensible
527 ]
528 interface IDailyTrigger : ITrigger
529 {
530 [propget] HRESULT DaysInterval([out, retval] short *pDays);
531 [propput] HRESULT DaysInterval([in] short days);
532 [propget] HRESULT RandomDelay([out, retval] BSTR *pRandomDelay);
533 [propput] HRESULT RandomDelay([in] BSTR randomDelay);
534 }
535
536 [
537 uuid(5038fc98-82ff-436d-8728-a512a57c9dc1),
538 oleautomation,
539 dual,
540 nonextensible
541 ]
542 interface IWeeklyTrigger : ITrigger
543 {
544 [propget] HRESULT DaysOfWeek([out, retval] short *pDays);
545 [propput] HRESULT DaysOfWeek([in] short days);
546 [propget] HRESULT WeeksInterval([out, retval] short *pWeeks);
547 [propput] HRESULT WeeksInterval([in] short weeks);
548 [propget] HRESULT RandomDelay([out, retval] BSTR *pRandomDelay);
549 [propput] HRESULT RandomDelay([in] BSTR randomDelay);
550 }
551
552 [
553 uuid(97c45ef1-6b02-4a1a-9c0e-1ebfba1500ac),
554 oleautomation,
555 dual,
556 nonextensible
557 ]
558 interface IMonthlyTrigger : ITrigger
559 {
560 [propget] HRESULT DaysOfMonth([out, retval] short *pDays);
561 [propput] HRESULT DaysOfMonth([in] short days);
562 [propget] HRESULT MonthsOfYear([out, retval] short *pMonths);
563 [propput] HRESULT MonthsOfYear([in] short months);
564 [propget] HRESULT RunOnLastDayOfMonth([out, retval] VARIANT_BOOL *pLastDay);
565 [propput] HRESULT RunOnLastDayOfMonth([in] VARIANT_BOOL lastDay);
566 [propget] HRESULT RandomDelay([out, retval] BSTR *pRandomDelay);
567 [propput] HRESULT RandomDelay([in] BSTR randomDelay);
568 }
569
570 [
571 uuid(77d025a3-90fa-43aa-b52e-cda5499b946a),
572 oleautomation,
573 dual,
574 nonextensible
575 ]
576 interface IMonthlyDOWTrigger : ITrigger
577 {
578 [propget] HRESULT DaysOfWeek([out, retval] short *pDays);
579 [propput] HRESULT DaysOfWeek([in] short days);
580 [propget] HRESULT WeeksOfMonth([out, retval] short *pWeeks);
581 [propput] HRESULT WeeksOfMonth([in] short weeks);
582 [propget] HRESULT MonthsOfYear([out, retval] short *pMonths);
583 [propput] HRESULT MonthsOfYear([in] short months);
584 [propget] HRESULT RunOnLastWeekOfMonth([out, retval] VARIANT_BOOL *pLastWeek);
585 [propput] HRESULT RunOnLastWeekOfMonth([in] VARIANT_BOOL lastWeek);
586 [propget] HRESULT RandomDelay([out, retval] BSTR *pRandomDelay);
587 [propput] HRESULT RandomDelay([in] BSTR randomDelay);
588 }
589
590 [
591 uuid(2a9c35da-d357-41f4-bbc1-207ac1b1f3cb),
592 oleautomation,
593 dual,
594 nonextensible
595 ]
596 interface IBootTrigger : ITrigger
597 {
598 [propget] HRESULT Delay([out, retval] BSTR *pDelay);
599 [propput] HRESULT Delay([in] BSTR delay);
600 }
601
602 [
603 uuid(4c8fec3a-c218-4e0c-b23d-629024db91a2),
604 oleautomation,
605 dual,
606 nonextensible
607 ]
608 interface IRegistrationTrigger : ITrigger
609 {
610 [propget] HRESULT Delay([out, retval] BSTR *pDelay);
611 [propput] HRESULT Delay([in] BSTR delay);
612 }
613
614 [
615 object,
616 oleautomation,
617 uuid(85df5081-1b24-4f32-878a-d9d14df4cb77)
618 ]
619 interface ITriggerCollection : IDispatch
620 {
621 [propget] HRESULT Count([out, retval] LONG *count);
622 [propget] HRESULT Item([in] LONG index, [out, retval] ITrigger **trigger);
623 [propget] HRESULT _NewEnum([out, retval] IUnknown **penum);
624 HRESULT Create([in] TASK_TRIGGER_TYPE2 type, [out, retval] ITrigger **trigger);
625 HRESULT Remove([in] VARIANT index);
626 HRESULT Clear();
627 }
628
629 [
630 object,
631 oleautomation,
632 uuid(7fb9acf1-26be-400e-85b5-294b9c75dfd6)
633 ]
634 interface IRepetitionPattern : IDispatch
635 {
636 [propget] HRESULT Interval([out, retval] BSTR *interval);
637 [propput] HRESULT Interval([in] BSTR interval);
638 [propget] HRESULT Duration([out, retval] BSTR *duration);
639 [propput] HRESULT Duration([in] BSTR duration);
640 [propget] HRESULT StopAtDurationEnd([out, retval] VARIANT_BOOL *stop);
641 [propput] HRESULT StopAtDurationEnd([in] VARIANT_BOOL sop);
642 }
643
644 [
645 object,
646 oleautomation,
647 uuid(bae54997-48b1-4cbe-9965-d6be263ebea4)
648 ]
649 interface IAction : IDispatch
650 {
651 [propget] HRESULT Id([out, retval] BSTR *id);
652 [propput] HRESULT Id([in] BSTR id);
653 [propget] HRESULT Type([out, retval] TASK_ACTION_TYPE *type);
654 }
655
656 [
657 object,
658 oleautomation,
659 uuid(02820e19-7b98-4ed2-b2e8-fdccceff619b)
660 ]
661 interface IActionCollection : IDispatch
662 {
663 [propget] HRESULT Count([out, retval] LONG *count);
664 [propget] HRESULT Item([in] LONG index, [out, retval] IAction **action);
665 [propget] HRESULT _NewEnum([out, retval] IUnknown **penum);
666 [propget] HRESULT XmlText([out, retval] BSTR *xml);
667 [propput] HRESULT XmlText([in] BSTR xml);
668 HRESULT Create([in] TASK_ACTION_TYPE Type, [out, retval] IAction **action);
669 HRESULT Remove([in] VARIANT index);
670 HRESULT Clear();
671 [propget] HRESULT Context([out, retval] BSTR *ctx);
672 [propput] HRESULT Context([in] BSTR ctx);
673 }
674
675 [
676 object,
677 oleautomation,
678 uuid(4c3d624d-fd6b-49a3-b9b7-09cb3cd3f047)
679 ]
680 interface IExecAction : IAction
681 {
682 [propget] HRESULT Path([out, retval] BSTR *path);
683 [propput] HRESULT Path([in] BSTR path);
684 [propget] HRESULT Arguments([out, retval] BSTR *argument);
685 [propput] HRESULT Arguments([in] BSTR argument);
686 [propget] HRESULT WorkingDirectory([out, retval] BSTR *directory);
687 [propput] HRESULT WorkingDirectory([in] BSTR directory);
688 }
689
690 [
691 object,
692 oleautomation,
693 uuid(9f7dea84-c30b-4245-80b6-00e9f646f1b4)
694 ]
695 interface INetworkSettings : IDispatch
696 {
697 [propget] HRESULT Name([out, retval] BSTR *name);
698 [propput] HRESULT Name([in] BSTR name);
699 [propget] HRESULT Id([out, retval] BSTR *id);
700 [propput] HRESULT Id([in] BSTR id);
701 }
702
703 [
704 object,
705 oleautomation,
706 uuid(d98d51e5-c9b4-496a-a9c1-18980261cf0f)
707 ]
708 interface IPrincipal : IDispatch
709 {
710 [propget] HRESULT Id([out, retval] BSTR *id);
711 [propput] HRESULT Id([in] BSTR id);
712 [propget] HRESULT DisplayName([out, retval] BSTR *name);
713 [propput] HRESULT DisplayName([in] BSTR name);
714 [propget] HRESULT UserId([out, retval] BSTR *user);
715 [propput] HRESULT UserId([in] BSTR user);
716 [propget] HRESULT LogonType([out, retval] TASK_LOGON_TYPE *logon);
717 [propput] HRESULT LogonType([in] TASK_LOGON_TYPE logon);
718 [propget] HRESULT GroupId([out, retval] BSTR *group);
719 [propput] HRESULT GroupId([in] BSTR group);
720 [propget] HRESULT RunLevel([out, retval] TASK_RUNLEVEL_TYPE *level);
721 [propput] HRESULT RunLevel([in] TASK_RUNLEVEL_TYPE level);
722 }
723
724 [
725 threading(both),
726 progid("Schedule.Service.1"),
727 vi_progid("Schedule.Service"),
728 uuid(0f87369f-a4e5-4cfc-bd3e-73e6154572dd)
729 ]
730 coclass TaskScheduler
731 {
732 interface ITaskService;
733 }
734
735 } /* library TaskScheduler */