|
| Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab. |
You are reading help file online using chmlib.com
|
Microsoft Speech SDK
SAPI 5.1
ISpThreadControl::WaitForThreadDone
ISpThreadControl::WaitForThreadDone specifies the time interval to wait before ending thread processing.
A thread can be forced to stop running or can wait until the thread stops running.
HRESULT WaitForThreadDone(
BOOL fForceStop,
HRESULT *phrThreadResult,
ULONG msTimeOut
);
Parameters
- fForceStop
- Flag specifies to stop thread processing. If this is TRUE, ISpThreadTask::ThreadProc will be called on the thread proc of the worker thread. The ThreadProc parameters of hExitThreadEvent handle will be filled out and pfContinueProcessing flag set to FALSE.
- phrThreadResult
- If this function returns S_OK, this address will contain the value returned from the thread proc.
- msTimeOut
- Time-out interval in milliseconds to wait before timing out the wait operation.
Return values
Value |
Description |
S_OK |
Function completed successfully. |
E_INVALIDARG |
One or more parameters are invalid. |
Remarks
Specifying fForceStop=TRUE with a timeout of zero will simply request that the thread exit and this method will return immediately. The caller could then wait for the ThreadCompleteEvent using a Win32 wait function.
You are reading help file online using chmlib.com
|
If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com