pub fn EnumPrinters2<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm>(
flags: PRINTER_ENUM,
) -> SysResult<Vec<PRINTER_INFO_2<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm>>>
Available on crate feature
winspool
only.Expand description
EnumPrinters
function for Level 2.
Note: This function doesn’t seem to work with raw-dylib
Cargo feature.
§Examples
use winsafe::{self as w, prelude::*, co};
let printers = w::EnumPrinters2(
co::PRINTER_ENUM::LOCAL | co::PRINTER_ENUM::CONNECTIONS)?;
for p in printers {
println!("{}", p.pPrinterName().unwrap());
}