winsafe 0.0.27

Windows API and GUI in safe, idiomatic Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::decl::*;
use crate::prelude::*;
use crate::winspool::ffi;

handle_guard! { ClosePrinterGuard: HPRINTER;
	ffi::ClosePrinter;
	/// RAII implementation for [`HPRINTER`](crate::HPRINTER) which
	/// automatically calls
	/// [`ClosePrinter`](https://learn.microsoft.com/en-us/windows/win32/printdocs/closeprinter)
	/// when the object goes out of scope.
}