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::QueueTask
ISpTaskManager::QueueTask adds a task to the queue for asynchronous task processing.
HRESULT QueueTask(ISpTask pTask,
void *pvTaskData,
HANDLE hCompEvent,
DWORD* *pdwGroupId,
DWORD* *pTaskID
);
Parameters
- pTask
[in] Address of an ISpTask interface containing the task. - pvTaskData
[in] Address of the task data that will be passed to the ISpTask::Execute method. - hCompEvent
[in] Handle of the task completion event. This event will be set when the Execute method returns. This parameter can be NULL. - pdwGroupId
[in, out] Value specifying the identifier for the task group. This value may be NULL. This can be used to cancel a group of pending tasks. - pTaskID
[out] Value specifying the task identifier. This parameter can be NULL if this information is not needed.
Return values
| Value |
| S_OK |
| E_INVALIDARG |
| E_POINTER |
| FAILED (hr) |