Share via


ISpTaskManager::CreateReoccurringTask (SAPI 5.4)

Microsoft Speech API 5.4

ISpTaskManager::CreateReoccurringTask

ISpTaskManager::CreateReoccurringTask creates a task entry that will be processed on a thread when the ISpNotifySink::Notify method is called on the task control object.

  
    HRESULT CreateReoccurringTask(ISpTask          *pTask,
   void             *pvTaskData,
   HANDLE            hCompEvent,
ISpNotifySink   **ppTaskCtrl
);

Parameters

  • pTask
    [in] Address of an ISpTask interface containing the task.
  • pvTaskData
    [in] Pointer that will be passed to the ISpTask::Execute method.
  • hCompEvent
    [in] Handle of the task completion event. This is optional and can be NULL. If non-NULL, this event handle will be signaled when the Execute method returns
  • ppTaskCtrl
    [out] Address of a pointer to an ISpNotifySink interface. Call the Notify() method on this object to cause the task to be scheduled.

Return values

Value
S_OK
E_INVALIDARG
E_POINTER
FAILED (hr)