I need to detect the network printers on my PC. I tried this method:
PrintQueueCollection networkQueues;
using (var printServer = new PrintServer())
{
var flags = new[] { EnumeratedPrintQueueTypes.Shared, EnumeratedPrintQueueTypes.Connections };
networkQueues = printServer.GetPrintQueues(flags);
}

But they are not detected. Yet I have two network printers, detectable with this code:
var printerNames = PrinterSettings.InstalledPrinters;
