ISpNotifyTranslator::InitWindowMessage

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpNotifyTranslator::InitWindowMessage

ISpNotifyTranslator::InitWindowMessage sets up the instance to send window messages to a specified window.


HRESULT InitWindowMessage(
   HWND      hWnd,
   UINT      Msg,
   WPARAM    wParam,
   LPARAM    lParam
);

Parameters

hWnd
[in] Handle to the window whose message handler function will receive SAPI notifications.
Msg
[in] Message number which will be passed into the message handler function of the window hWnd.
wParam
[in] wParam that will be passed into the message handler function of the window hWnd.
lParam
[in] lParam that will be passed into the message handler function of the window hWnd

Return values

Value Description
S_OK Function completed successfully.
SPERR_ALREADY_INITIALIZED SpTranslator object already initialized.
E_INVALIDARG hWnd is invalid or bad.
FAILED(hr) Appropriate error message.