__interface IControl : IUnknown

{

    HRESULT Init(IStringProperties *pProperties, ISettingsProperties *pTaskSettings);

    HRESULT Execute(LPDWORD pReturnCode);

};

 

Implement this interface if you want your component to be available as a task in the preflight page or if you want to use the BackgroundTask component to perform work on a background thread.

Here are components that implement the ITask interface:

·     ID_ShellExecuteTask, L"Microsoft.Wizard.ShellExecuteTask"

·     ID_CopyFilesTask, L"Microsoft.Wizard.CopyFilesTask"

·     ID_ACPowerTask, L"Microsoft.OSDRefresh.ACPowerTask"

·     ID_WiredNetworkTask, L"Microsoft.SharedPages.WiredNetworkTask"

Related Topics

Wizard Page Interfaces
Init
Execute