protected override void AddLocal(LocalPrinter printer)
        {
            if (printer.IP != null)
                AddIPPort(printer, "9100");

            var proc = Process.Start("rundll32.exe",
                $" printui.dll,PrintUIEntry /if /q /b \"{printer.Name}\" /f \"{printer.File}\" /r \"{printer.Port}\" /m \"{printer.Model}\"");
            proc?.WaitForExit(120000);
        }
Exemplo n.º 2
0
 protected override void AddLocal(LocalPrinter printer)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 protected abstract void AddLocal(LocalPrinter printer);