Skip to content

Latest commit

 

History

History
97 lines (66 loc) · 3.25 KB

nf-taskschd-itaskhandler-start.md

File metadata and controls

97 lines (66 loc) · 3.25 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:taskschd.ITaskHandler.Start
ITaskHandler::Start (taskschd.h)
Called to start the COM handler.
ITaskHandler interface [Task Scheduler]
Start method
ITaskHandler.Start
ITaskHandler::Start
Start
Start method [Task Scheduler]
Start method [Task Scheduler]
ITaskHandler interface
taskschd.itaskhandler_start
taskschd/ITaskHandler::Start
taskschd\itaskhandler_start.htm
taskschd
e0a51387-e638-40ee-a4e4-edd7f3115975
12/05/2018
ITaskHandler interface [Task Scheduler],Start method, ITaskHandler.Start, ITaskHandler::Start, Start, Start method [Task Scheduler], Start method [Task Scheduler],ITaskHandler interface, taskschd.itaskhandler_start, taskschd/ITaskHandler::Start
taskschd.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Taskschd.lib
Taskschd.dll
Windows
19H1
ITaskHandler::Start
taskschd/ITaskHandler::Start
c++
APIRef
kbSyntax
COM
taskschd.dll
ITaskHandler.Start

ITaskHandler::Start

-description

Called to start the COM handler. This method must be implemented by the handler.

-parameters

-param pHandlerServices [in]

An IUnkown interface that is used to communicate back with the Task Scheduler.

-param data [in]

The arguments that are required by the handler. These arguments are defined in the Data property of the COM handler action.

-returns

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

When implementing this method, the handler should return control immediately to the Task Scheduler (starting its own thread if inproc).

After the handler starts its processing, it can call the UpdateStatus method to indicate its percentage of completion or call the TaskCompleted method to indicate when the handler has completed its processing. These methods are provided by the ITaskHandlerStatus interface.

-see-also

Data

ITaskHandler

ITaskHandlerStatus

Task Scheduler

TaskCompleted

UpdateStatus