IonicWind Software

IWBasic => The Roundtable => Topic started by: Brian on February 09, 2019, 08:56:30 AM

Title: Enumerating Printers
Post by: Brian on February 09, 2019, 08:56:30 AM
Looking through old code once again, I found this one I wrote 15 years(!) ago, for enumerating local and network printers, and I thought I would bring it up to date

I can't enumerate network printers here, but I am sure it worked when I wrote it, because I worked on a network

Should compile with no problem. Some code from Paul T and very probably other folks

Brian
Title: Re: Enumerating Printers
Post by: billhsln on February 09, 2019, 09:17:23 AM
Will try and test it on a network on Tuesday.

Bill
Title: Re: Enumerating Printers
Post by: fasecero on February 09, 2019, 08:59:19 PM
One possible cause: you are setting up 'EnumPrintersA' with the wrong flag. You are using 22 which is decimal. Try using 0x22 instead which should be PRINTER_ENUM_SHARED + PRINTER_ENUM_LOCAL. I don't have a local network so maybe Bill can check on this.
Title: Re: Enumerating Printers
Post by: Brian on February 14, 2019, 06:45:29 AM
Thanks to Bill's testing, and Fasecero's remarks, I have now done a bit of a re-write of this program. See first post to re-download

Brian