Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method sets up an ISpNotifyTranslator object 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 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 Values
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
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.
See Also
ISpNotifyTranslator | SAPI Interfaces
Send Feedback on this topic to the authors