Method SendMessage
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
IntPtrIdentifies the window whose window procedure will receive the message.
msg
intSpecifies the message to be sent.
wparam
IntPtrSpecifies additional message-specific information.
lparam
IntPtrSpecifies additional message-specific information.
Returns
- IntPtr
Result of the message processing and depends on the message sent.