Microsoft Deployment Toolkit
Documentation Library HRESULT Init(ITask *pTask, int id, IBackgroundCallback *pCallback) |
This interface initializes the component, as shown in Table 12.
Table 12. HRESULT Init
Parameter |
Description |
pTask |
Pointer to the class that contains the code you want to run on another thread |
Id |
A number you can use in the callback’s Finished method to tell which task finished running; useful if you start several tasks with the same callback method |
pCallback |
A class that implements the Finished method, which is called whenever a task finishes running; the call to the Finished method will be on the background thread, not the UI thread |
Related Topics