Table of Contents

Method SendMessage

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

SendMessage(IntPtr, int, IntPtr, IntPtr)

The SendMessage function sends the specified message to a window or windows. The function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

public static IntPtr SendMessage(IntPtr hwnd, int msg, IntPtr wparam, IntPtr lparam)

Parameters

hwnd IntPtr

Identifies the window whose window procedure will receive the message.

msg int

Specifies the message to be sent.

wparam IntPtr

Specifies additional message-specific information.

lparam IntPtr

Specifies additional message-specific information.

Returns

IntPtr

Result of the message processing and depends on the message sent.