[Migrated content. Thread originally posted on 28 November 2003]
In terminal server environment every user has access to the printers defined at server level or that are auto redirect from the workstation the user is logging from.For example if i have two printers defined on my local pc and i connect on a terminal server i will find them in the terminal server printers, generated automatically.
Using the CALL "WIN$PRINTER" with
WINPRINT-GET-NO-PRINTERS, i will obtain a number of printer that are not only the mine, but all the printers of all the user connected (but if i try to print from write for example i will see only my printers and no more).
If i collect the name of the printers using
WINPRINT-GET-PRINTER-INFO-EX i will get all the printers in the system.
I would like to show to my user only the printers that he they have to see (like write or start, settings, printers).
If during the collection of the printers, done with a loop from 1 to WINPRINT-NO-OF-PRINTERS some users disconnect (and the relative printers are removed from the system), the runtime hangs with a memory fail error.
Any Idea ?
Thanks