Network printers and the PrintServer.GetPrintQueues method

I have the feeling that the PrintServer.GetPrintQueues method does not return network printers.

If true, what other options do I have?

+4
source share
2 answers

After many Googling methods GetPrintQueues will return network printers using EnumeratedPrintQueueTypes ()

Private enumerationFlags As EnumeratedPrintQueueTypes() = {EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections}

More information can be found here.

+7
source

Windows Management Instrumentation.

See here for an example to get network printers using WMI.

0
source

Source: https://habr.com/ru/post/1304551/


All Articles