ITaskHandler Interface
Defines the methods that are called by the Task Scheduler service to manage a COM handler.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[ComImportAttribute]
[GuidAttribute("839D7762-5121-4009-9234-4F0D19394F04")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITaskHandler
This interface must be implemented for a task to perform a COM handler action. When the Task Scheduler performs a COM handler action, it creates and activates the handler and calls the methods of this interface as needed. For information on specifying a COM handler action, see the
ComHandlerAction class.
Pause |
Called to pause the COM handler. This method is optional and should only be implemented to give the Task Scheduler the ability to pause and restart the handler.
|
Resume |
Called to resume the COM handler. This method is optional and should only be implemented to give the Task Scheduler the ability to resume the handler.
|
Start |
Called to start the COM handler. This method must be implemented by the handler.
|
Stop |
Called to stop the COM handler. This method must be implemented by the handler.
|