Share via


ISpNotifySource::SetNotifyWindowMessage (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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 Value

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

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

See Also

Reference

ISpNotifySource
SAPI Interfaces