Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining

ISpThreadTask (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3


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.
© 2015 Microsoft