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); }
protected override void AddLocal(LocalPrinter printer) { throw new NotImplementedException(); }
protected abstract void AddLocal(LocalPrinter printer);