Post by R.WieserT,
Post by TThis one?
https://docs.microsoft.com/en-us/windows/win32/printdocs/enumprinters
Thats one of them. It could not hurt to take a peek at the other functions
in that group ("see also", "Print Spooler API Functions") though.
Depending on what exactly you are looking for - all currently usable
printers, or just a list of possible ones (with drivers installed for them)
or something other - the function(s) you need might differ.
Regards,
Rudy Wieser
Hi Rudy,
Under Windows 10, I have found the Devices and Printers
does not always list all the printers -- very frustrating
at times.
I find the missing printers by going into any program
with a print dialog and finding them in the pull down.
So I wanted to write a program that would give me a
quick list of printers, so I can see what is missing
from Devices and Printers.
This is what I wrote for Linux:
$ ListPrinters.pl6
nCount <5>
$i = <0> printer: <B4350>
$i = <1> printer: <Cups-PDF>
$i = <2> printer: <Cups_PDF_rn6>
$i = <3> printer: <Oki_B4350_on_dev_lp0_rn6>
$i = <4> printer: <Virtual_PDF_Printer>
I wanted to add an OS check to the above program
so it would give me Windows as well as Linux
printers.
-T