Share via


SendMessageW_I (Windows Embedded CE 6.0)

1/6/2010

This function sends the specified message to a window or windows. SendMessageW_I calls the window procedure for the specified window and does not return until the window procedure processes the message. The PostMessage function, in contrast, posts a message to the message queue for a thread and returns immediately.

Syntax

LRESULT WINAPI SendMessageW_I(
  HWND hWnd,
  UINT uMsg,
  WPARAM wParam,
  LPARAM lParam
);

Parameters

  • hWnd
    [in] Handle to the window to which SendMessageW_I should send the message and for which SendMessageW_I should call the window procedure. If this parameter is HWND_BROADCAST, SendMessageW_I sends the message to all top-level windows in the system, including unavailable or hidden unowned windows, overlapped windows, and pop-up windows. SendMessageW_I does not send the message to child windows.
  • uMsg
    [in] Unsigned integer that specifies the message that you want to send.
  • wParam
    [in] WPARAM that specifies additional message-specific information.
  • lParam
    [in] LPARAM that specifies additional message-specific information.

Return Value

The return value specifies the result of the message processing and depends on the message that you sent.

Remarks

If the calling thread created the specified window, SendMessageW_I immediately calls the window procedure as a subroutine. If a different thread created the specified window, the OS switches to that thread and calls the appropriate window procedure. If you send a message between threads, the receiving thread processes the message only when the receiving thread executes message retrieval code. The sending thread enters a blocked state until the receiving thread processes the message.

Windows Embedded CE does not support all of the messages that the Windows-based desktop platforms support.

Requirements

Header gwebypasscoredllthunk.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

GWES OS Functions
PostMessage
RegisterWindowMessage
SendDlgItemMessage
SendMessage