Compartilhar via


ISpNotifySource::SetNotifyWindowMessage (Windows CE 5.0)

Send Feedback

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

HRESULT SetNotifyWindowMessage(  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 specified by hWnd.
  • 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.
E_INVALIDARG hWnd is an invalid window handle.
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

ISpNotifySource | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.