Share via


ISpNotifyTranslator::InitWindowMessage (Windows Embedded CE 6.0)

1/6/2010

This method sets up an ISpNotifyTranslator object to send window messages to a specified window.

Syntax

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 to pass to the message handler function of the window.
  • wParam
    [in] Constant WPARAM value to pass to the message handler function of the window.
  • lParam
    [in] Constant LPARAM value to pass to the message handler function of the window.

Return Value

The following table shows the possible 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.

Requirements

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpNotifyTranslator
SAPI Interfaces