Function windows_win::raw::window::send_message
source · pub fn send_message(
window: HWND,
msg_type: UINT,
w_param: WPARAM,
l_param: LPARAM,
timeout: Option<UINT>
) -> Result<LRESULT>
Expand description
Sends message to a window.
Note
All messages that this function sends are blocking.
You can specify timeout for how long to block.
Parameters
window
- Handle to the window for which to send.msg_type
- Type of message. See WinAPI docs.wParam
- Additional message specific parameter.lParam
- Additional message specific parameter.timeout
- Optional timeout in milliseconds.
Return
Ok
- Message has been sent successfully.Err
- Error reason. Relevant only to message with timeout.