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.4
ISpNotifyCallback
This is not a COM interface. This is a C++ virtual interface that can be implemented by a SAPI client application to receive notifications. Since it is not a COM interface, the application does not need to implement QueryInterface, AddRef, or Release. It is the responsibility of the client code to control the lifetime of an ISpNotifyCallback-style notification. To remove an installed notify callback, call ISpEventSource::SetNotifySink( NULL ). The final release of an object that supports ISpEventSource will automatically remove an installed notify callback.
The SAPI implementation uses a hidden window to call the client back on the same thread that was used to initialize the event source. Notification callbacks are the result of processing a window message. This means that when the notification mechanism is used:
- The NoitifyCallback method will always be called on the thread that initialized the event source or notify translator object.
- The thread must have a window message pump.
Methods in Vtable Order
| ISpNotifySource Methods |
| NotifyCallback |