crosswin 0.4.0

Async-friendly Windows primitives for Rust with process management, memory monitoring, and system operations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crosswin::prelude::*;

#[tokio::main]
async fn main() -> crosswin::Result<()> {
    let args: Vec<String> = std::env::args().collect();
    let title = args.get(1).map(|s| s.as_str()).unwrap_or("");

    let matches = find_windows_by_title(title).await?;
    println!("Found {} windows matching '{}':", matches.len(), title);
    for w in matches {
        println!("{:?}", w);
    }
    Ok(())
}