Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Speech API 5.3
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) |