From 0ff6879f91103b3de66ee069a56c8a0272505f44 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 18 Dec 2013 18:01:26 +0900 Subject: [PATCH] include: Add more Task Scheduler interface definitions. --- include/taskschd.idl | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/include/taskschd.idl b/include/taskschd.idl index 110732f3329..d736788d957 100644 --- a/include/taskschd.idl +++ b/include/taskschd.idl @@ -93,6 +93,17 @@ typedef enum _TASK_COMPATIBILITY TASK_COMPATIBILITY_V2_1 } TASK_COMPATIBILITY; +typedef enum _TASK_CREATION +{ + TASK_VALIDATE_ONLY = 1, + TASK_CREATE = 2, + TASK_UPDATE = 4, + TASK_CREATE_OR_UPDATE = 6, + TASK_DISABLE = 8, + TASK_DONT_ADD_PRINCIPAL_ACE = 16, + TASK_IGNORE_REGISTRATION_TRIGGERS = 32 +} TASK_CREATION; + interface ITaskService; interface IRegisteredTask; interface IRegisteredTaskCollection; @@ -106,9 +117,11 @@ interface IRunningTask; interface IRunningTaskCollection; interface ITrigger; interface ITriggerCollection; +interface ITimeTrigger; interface IRepetitionPattern; interface IAction; interface IActionCollection; +interface IExecAction; interface INetworkSettings; interface IPrincipal; @@ -388,6 +401,17 @@ interface ITriggerCollection : IDispatch HRESULT Clear(); } +[ + object, + oleautomation, + uuid(b45747e0-eba7-4276-9f29-85c5bb300006) +] +interface ITimeTrigger : ITrigger +{ + [propget] HRESULT RandomDelay([out, retval] BSTR *delay); + [propput] HRESULT RandomDelay([in] BSTR delay); +} + [ object, oleautomation, @@ -434,6 +458,21 @@ interface IActionCollection : IDispatch [propput] HRESULT Context([in] BSTR ctx); } +[ + object, + oleautomation, + uuid(4c3d624d-fd6b-49a3-b9b7-09cb3cd3f047) +] +interface IExecAction : IAction +{ + [propget] HRESULT Path([out, retval] BSTR *path); + [propput] HRESULT Path([in] BSTR path); + [propget] HRESULT Arguments([out, retval] BSTR *argument); + [propput] HRESULT Arguments([in] BSTR argument); + [propget] HRESULT WorkingDirectory([out, retval] BSTR *directory); + [propput] HRESULT WorkingDirectory([in] BSTR directory); +} + [ object, oleautomation,