//! `VirtualLock` / `VirtualUnlock` backend for Windows.
use ;
/// Attempt to lock `len` bytes starting at `ptr` into RAM.
///
/// # Safety
///
/// `ptr` must point to a live allocation of at least `len` bytes that will
/// remain valid until a matching [`unlock_pages`] call. `len` must be
/// non-zero (the empty case is filtered upstream).
pub unsafe
/// Release the lock on `len` bytes starting at `ptr`.
///
/// # Safety
///
/// Same invariants as [`lock_pages`]. The result is ignored — failure to
/// unlock is not actionable from `Drop`.
pub unsafe