Function windows_win::raw::message::get

source ·
pub fn get(
    window: Option<HWND>,
    range_low: Option<UINT>,
    range_high: Option<UINT>
) -> Result<MSG>
Expand description

Retrieves a message from the calling thread’s message queue. A blocking call.

Parameters:

  • window - A handle to the window whose messages are to be retrieved. The window must belong to the current thread.
  • range_low - Integer value of the lowest message to retrieve.
  • range_high - Integer value of the highest message to retrieve.

Return

  • Ok - Successfully retrieved message..
  • Err - Impossible to retrieve message.