![]() ![]() AUTHORĬopyright (C) 2017 by Qindel Formación y Servicios SL Win32::Printer and Win32::Printer::Enum provide similar functionality, but they are not thin wrappers around the C/C++ functions. The following functions can be imported from the module: = EnumPrinters($flags, $name, $level) The following tags can also be used at import time to pick sets of constants: attribute => PRINTER_ATTRIBUTE_* For instance, PRINTER_ATTRIBUTE_QUEUED is both queued and 1.Įnumeration values returned from the supported functions follow the same rule. The string value is the C constant name lower-cased and with any common prefix removed. The constants have both an integer and a string value (in a similar fashion to $!). ![]() For instance: use Win32::EnumPrinters qw(PRINTER_ATTRIBUTE_RAW_ONLY) CONSTANTSĪny constant accepted by the supported functions in input parameters or included in output data can be imported by the module. The names used for their slots are as in C but with any type declaration or structure name prefixes (i.e p for pointer, dw for DWORD, dm for DEVMODE, etc.) removed. Output C data structures are converted to Perl hashes. This module wraps Win32 EnumPrinters and some related functions. SYNOPSIS use Win32::EnumPrinters qw(EnumPrinters) ![]() Win32::EnumPrinters - Enumerate printers in Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |