Method SendMessage
SendMessage(nint, uint, nint, nint)
Sends the specified message to a window or windows.
public static extern uint SendMessage(nint hWnd, uint message, nint wParam, nint lParam)
Parameters
hWndnintA handle to the window whose window procedure will receive the message. If this parameter is Zero, the message is sent to all top-level windows in the system.
messageuintThe message to be sent.
wParamnintAdditional message-specific information.
lParamnintAdditional message-specific information.
Returns
- uint
The result of the message processing; value depends on the message sent.