You must call this method before calling any other method. It initializes the TaskManager component. See Table 49.

Table 49. HRESULT Init

Parameter

Description

pPageView

Provides access to the page that will be running tasks (This page must have a specific set of controls, which are outlined in the next few parameters.)

idListView

The control ID of a ListView control that will display the list of tasks and the status of those tasks

idMessage

The control ID of a text box that will be used to display a message for the task that you select

idRetryButton

The control ID of a button you can click to run the tasks again

pPageInfo

A wrapper around the page’s XML (TaskManager loads the set of tasks to run from this XML.)

pCallback

Can be null (If this parameter is not null, TaskManager calls the Started method when it starts a task and the Finished method for each task that finishes running.)

 

Related Topics

ITaskManager Interface