Microsoft Speech SDK
SAPI 5.1
ISpTaskManager::TerminateTask
ISpTaskManager::TerminateTask interrupts the specified task.
HRESULT TerminateTask(
DWORD dwTaskId,
ULONG ulWaitPeriod
);
Parameters
- dwTaskId
- [in] Value specifying the identifier of the task to interrupt.
- ulWaitPeriod
- [in] Number of milliseconds to wait before interrupting the task.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
S_FALSE | Method timed out. |
FAILED (hr) | Appropriate error message. |