Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ISpThreadTask (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpThreadTask

The ISpThreadTask interface simplifies thread-based operations. Clients can implement this virtual C++ interface to simplify the management of threads. SAPI provides coordination methods for starting, initializing, and stopping the thread. See the ISpThreadControl documentation for more information. Clients simply implement three methods which will be called on the allocated thread.

When to Implement

Use SpThreadControl objects to allocate threads for an object.

This is not a COM interface.

Methods in Vtable Order

ISpThreadTask MethodsDescription
InitThreadMethod called on the allocated thread. If the method returns an error, the ISpThreadControl::StartThread method will fail.
ThreadProcImplements the processing of the thread.
WindowMessageImplements the processing of window messages.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.