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
hwndIntPtrIdentifies the window whose window procedure will receive the message.
msgintSpecifies the message to be sent.
wparamIntPtrSpecifies additional message-specific information.
lparamIntPtrSpecifies additional message-specific information.
Returns
- IntPtr
Result of the message processing and depends on the message sent.