Is there something better than EnumPrinters?

  • Thread starter Thread starter PyongHopscotch
  • Start date Start date
P

PyongHopscotch

Hi All I was just wondering if there was a better function/way to get
information on all the printers currently installed than EnumPrinters.
I only really need all the printer names but don't care to do the
memory management involved with EnumPrinters.

I looked at using GetProfileString with [devices] but that requires I
know the buffer size ahead of time.

Any alternatives would be appreciated.
 
Hi All I was just wondering if there was a better function/way to get
information on all the printers currently installed than EnumPrinters.
I only really need all the printer names but don't care to do the
memory management involved with EnumPrinters.

I looked at using GetProfileString with [devices] but that requires I
know the buffer size ahead of time.

Any alternatives would be appreciated.

Sure.

PrinterSettings.InstalledPrinters will give you these.

No, its not terribly intuitive :)

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top