Given a connection to a terminal server, when using a test program written in Delphi XE2, the list of printer names in the Printer.Printers collection is different from the list of printers shown when using a TPrintDialog.
Some of the redirected printers show up in both, but the print dialog contains 3 more local printers that have been redirected.
I've tried looking at the code in Vcl.Dialogs to see where the print dialog is getting its list of printers but no joy there.
I've also tried calling EnumPrinters directly but I get the same result, not unsurprisingly.
How can I be sure that I can get the same list of printers - local/network/redirected - within my Delphi code as I see if I look at the Printers via Control Panel?