//! Windows-specific utilities.
//!
//! There are some crates that could handle this for us, such as `winsafe`, but they're large
//! dependencies for a relatively small problem.
use GetLastError;
/// Query the system for the last set error.
/// Perform a windows operation that returns a `BOOL`-like status.
///
/// A returned value of `0` is treated as the failure case, matching the Win32 convention where a
/// zero `BOOL` signals failure and the reason is retrieved via [`GetLastError`].