ISpNotifyTranslator::InitSpNotifyCallback (SAPI 5.3)

Microsoft Speech API 5.3

ISpNotifyTranslator::InitSpNotifyCallback

ISpNotifyTranslator::InitSpNotifyCallback sets up this instance to call the virtual method ISpNotifyCallback::NotifyCallback for notifications.

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

Parameters

Return values

Value
S_OK
SPERR_ALREADY_INITIALIZED
E_INVALIDARG
FAILED(hr)

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.