How can I get a list of all the connected USB printers using C#? I need to show in a Listbox the name of all USB printers.
Edit: System.Drawing.Printing.PrinterSettings.InstalledPrinters does not solve my problem, I need only USB printers, not installed printers.
Edit2: My real objective is get device instance ID from the printer name, which has been answered here: Figuring which printer name corresponds to which device ID. So, I need printer name take from a list of USB printers to use GetUSBPath(string PrinterName).