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 agame_capture
or awindow_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.