Interface to the Windows Task Scheduler
-
Connect to another machine to manage its tasks
-
Returns name of computer that the Task Scheduler is connected to
-
Retrieve list of task names
-
Opens the specified task and returns an ITask interface for it
-
Delete task by name
-
Creates a new task
-
Create a new scheduled task from PyITask object
-
Check if named task supports specified interface
PyITaskScheduler.Activate
PyITask = Activate(Name, riid
) Opens the specified task and returns an ITask interface for it
-
Name : unicode
Name of task to retreive
-
riid=IID_ITask : PyIID
IID to return, currently only IID_ITask accepted
PyITaskScheduler.AddWorkItem
AddWorkItem(TaskName, WorkItem) Create a new scheduled task from PyITask object
-
TaskName : unicode
Name of task to be created
-
WorkItem : PyITask
Existing PyITask object
The PyItask passed in is modified in place and on success is associated with the new task, not the old one
PyITaskScheduler.Delete
Delete(TaskName) Delete task by name
-
TaskName : unicode
Name of task to delete
PyITaskScheduler.Enum
PyUnicode,... = Enum() Retrieve list of task names
PyITaskScheduler.GetTargetComputer
unicode
= GetTargetComputer() Returns name of computer that the Task Scheduler is connected to
PyITaskScheduler.IsOfType
IsOfType(Name, riid) Check if named object supports specified interface
-
Name : unicode
Name of object
-
riid : PyIID
Named object is checked that it supports the interface of this IID
PyITaskScheduler.NewWorkItem
PyITask = NewWorkItem(TaskName, rclsid
, riid
) Creates a new task
-
TaskName : unicode
Name of new task
-
rclsid=CLSID_CTask : PyIID
Class id of work item, currently only CLSID_CTask (defaults if not passed in)
-
riid=IID_ITask : PyIID
Interface IID to return, currently only IID_ITask (defaults if not passed in)
PyITaskScheduler.SetTargetComputer
SetTargetComputer(Computer) Connect to another machine to manage its tasks
-
Computer : unicode
Name of system to connect to
Leading backslashes are required. Call will succeed without them, but no other methods will work.