Microsoft Speech SDK
SAPI 5.1
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 | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | pTask is invalid or bad. |
E_POINTER | ppTaskCtrl is invalid or bad. |
FAILED (hr) | Appropriate error message. |