Export (0) Print
Expand All

ISpNotifySource::SetNotifyCallbackInterface (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpNotifySource::SetNotifyCallbackInterface

ISpNotifySource::SetNotifyCallbackInterface sets up this instance to call the virtual method ISpNotifyCallback::NotifyCallback for notifications.

HRESULT SetNotifyCallbackInterface(
   ISpNotifyCallback   *pSpCallback,
   WPARAM               wParam,
   LPARAM               lParam
);

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

ValueDescription
S_OKFunction completed successfully.
E_INVALIDARGpSpCallback 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.

Show:
© 2015 Microsoft