win-handles-sys 0.1.1

Memory-safe Rust over the Win32 handle and object API: duplicating a handle with the access kept or chosen and its inheritance chosen, with a typed access mask, and reading and setting a handle's flags, asking whether two handles name one object, and closing a handle with its result. Thin over Win32, adding no policy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2026 Mike Grier
#![doc = include_str!("../README.md")]
#![cfg(windows)]
#![deny(missing_docs)]
#![deny(unsafe_op_in_unsafe_fn)]

mod close;
mod compare;
mod duplicate;
mod handle_information;

pub use close::close_handle;
pub use compare::compare_object_handles;
pub use duplicate::{
    Access, DuplicateAccess, Inheritance, duplicate_handle, duplicate_handle_with_access,
};
pub use handle_information::{HandleFlags, get_handle_information, set_handle_information};