Skip to main content

windows_erg/utils/
mod.rs

1//! Shared utility helpers.
2//!
3//! This namespace contains reusable internals that are safe to expose publicly
4//! for advanced callers, while remaining focused on low-level interop concerns.
5
6/// Shared Win32 handle ownership helpers.
7pub mod handles;
8/// Shared UTF-16 and wide-string conversion helpers.
9pub mod strings;
10
11/// Shared owned Win32 handle RAII wrapper.
12pub use handles::OwnedHandle;
13/// Shared UTF-16 and PWSTR conversion helpers.
14pub use strings::{pwstr_to_string, pwstr_to_string_len, to_utf16, to_utf16_nul, to_utf16_nul_in};