Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpNotifySource::SetNotifyCallbackInterface
ISpNotifySource::SetNotifyCallbackInterface sets up this instance to call the virtual method ISpNotifyCallback::NotifyCallback for notifications.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT SetNotifyCallbackInterface(</strong> <strong><a runat="server" href="jj127652(v=msdn.10).md">ISpNotifyCallback</a></strong> <em>*pSpCallback</em>, <strong> WPARAM</strong> <em>wParam</em>, <strong> LPARAM</strong> <em>lParam</em> <strong>);</strong> </pre>
Parameters
- pSpCallback
[in] A pointer to an application-defined implementation of the ISpNotifyCallback interface. - wParam
[in] Constant WPARAM value that will be passed to the ISpNotifyCallback::NotifyCallback method when it is called. - lParam
[in] Constant LPARAM value that will be passed to the ISpNotifyCallback::NotifyCallback method when it is called.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | pSpCallback is invalid. |
FAILED (hr) | Appropriate error message. |
Remarks
The application will be called back on the same thread that calls this method. The callback will be called as a result of window message processing, so the thread must have a message pump. For more details, see the documentation for ISpNotifyCallback.