dict = GetPrinter(hPrinter, Level
)
Retrieves information about a printer
Parameters
hPrinter : PyPrinterHANDLE
handle to printer object as returned by
win32print::OpenPrinterLevel=2 : int
Level of data returned (1,2,3,4,5,7,8,9)
Comments
Original implementation used level 2 only and returned a tuple
Pass single arg as indicator to use old behaviour for backward compatibility
Return Value
Returns a dictionary containing PRINTER_INFO_* data for level, or
returns a tuple of PRINTER_INFO_2 data if no level is passed in.