win32print.SetPrinter

SetPrinter(hPrinter, Level, pPrinter, Command)

Change printer configuration and status

Parameters

hPrinter : PyPrinterHANDLE

Printer handle as returned by win32print::OpenPrinter

Level : int

Level of data contained in pPrinter

pPrinter : dict

PRINTER_INFO_* dict as returned by win32print::GetPrinter, can be None if level is 0

Command : int

Command to send to printer - one of the PRINTER_CONTROL_* constants, or 0

Comments

If Level is 0 and Command is PRINTER_CONTROL_SET_STATUS, pPrinter should be an integer, and is interpreted as the new printer status to set (one of the PRINTER_STATUS_* constants).