win32print.AddPrinter

PyPrinterHANDLE = AddPrinter(Name, Level , pPrinter )

Installs a printer on a server

Parameters

Name : string

Name of server on which to install printer, None indicates local machine

Level : int

Level of data contained in pPrinter, only level 2 currently supported

pPrinter : dict

PRINTER_INFO_2 dict as returned by win32print::GetPrinter

Comments

pPrinterName, pPortName, pDriverName, and pPrintProcessor are required

Return Value

Returns a handle to the new printer