Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / June 2006

Tip: Looking for answers? Try searching our database.

Enumerate Printers on a PC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike C# - 28 Jun 2006 17:20 GMT
Hi all,

I need to enumerate all the printers on a PC running Win XP or Win 98.  I'm
considering reading the registry to grab all the info. like local name and
share name (if shared), but I'm thinking there should be a Windows API call
that will do all that for me.  Does anyone know if there is a Windows API
call that will do this?  Or should I just keep working at dissecting the
registry?

Thanks
David Lowndes - 28 Jun 2006 23:21 GMT
>I need to enumerate all the printers on a PC running Win XP or Win 98.  I'm
>considering reading the registry to grab all the info. like local name and
>share name (if shared), but I'm thinking there should be a Windows API call
>that will do all that for me.  Does anyone know if there is a Windows API
>call that will do this?

How about EnumPrinters() ?

Dave
Mike C# - 29 Jun 2006 01:19 GMT
> How about EnumPrinters() ?
>
> Dave

Thanks Dave, I went ahead and created a small app that uses EnumPrinters,
but now I have to use some funky code to determine the default printer lol.
No problem though, I think I have a handle on it now.  Thanks!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.