Function get_all_windows

Source
pub fn get_all_windows(mode: WindowSearchMode) -> Result<Vec<WindowInfo>>
Expand description

Retrieves information about all windows based on the specified search mode and game check flag.

§Arguments

  • mode - The search mode to use for window enumeration.
  • check_game - A flag indicating wether a game_capture or a window_capture is used

§Returns

A Result containing a vector of WindowInfo structs representing the retrieved window information, or an anyhow::Error if an error occurs.