ITaskScheduler::AddWorkItemITaskScheduler::AddWorkItem*
*Contents  *Index  *Topic Contents
*Previous Topic: ITaskScheduler::Activate
*Next Topic: ITaskScheduler::Delete

ITaskScheduler::AddWorkItem

HRESULT AddWorkItem(
    LPCWSTR  pwszTaskName,
    IScheduledWorkItem * pWorkItem
);

Adds a task to the schedule of tasks. Unlike NewWorkItem, this method requires that you first create an object that supports the IScheduledWorkItem interface and pass its address in the pWorkItem parameter.

pwszTaskName
LPCWSTR that specifies the name of the task to add. The task name must conform to Windows NT file-naming conventions but cannot include backslashes, because nesting within the task folder object is not allowed.
pWorkItem
Address of an interface pointer that receives the requested interface.

See also ITaskScheduler::NewWorkItem

Back to top


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.