An abstraction over the windows tlhelp32 api. It offers a generic Snapshot struct which acts as an iterator to easily iterate over the returned entries.
fn main() -> std::io::Result<()> {
for entry in tlhelp32::Snapshot::new_process()? {
println!("{:?}", entry);
}
Ok(())
}