[[This API may be altered or unavailable in subsequent versions of the operating system or product. Please use the Task Scheduler 2.0 Interfaces instead.] ]
Sends a request to the Task Scheduler service to run the work item.
HRESULT Run( );
This method has no parameters.
The Run method returns one of the following values.
||The operation was successful. The request was sent. For more information, see Remarks.|
||The arguments are not valid.|
||Not enough memory is available.|
Run is an asynchronous operation. A return code of S_OK means that the request to run the work item has been made; it does not mean that the work item has started running. There may be a delay of a few seconds after Run returns before the work item actually starts running.
To determine whether the work item is running, call IScheduledWorkItem::GetStatus.
For an example of how to start a task, see Starting a Task Example.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Redistributable||Internet Explorer 4.0 or later on Windows NT 4.0 and Windows 95|