DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    ananthakrishna Guest

    Listing installed Printers


    Hello
    I want to list all the installed printers in my Program.
    How can i do that.
    Even if it is network printer i want to show.
    Same thing i wan to do with scanners also.
    I want to list all the scanner.
    Thanks in advance
    regards,
    ananthakrishna

  2. #2
    Mark C Guest

    Re: Listing installed Printers


    Never done it, but you might want to start looking at
    BOOL EnumPrinters(
    DWORD Flags, // printer object types
    LPTSTR Name, // name of printer object
    DWORD Level, // information level
    LPBYTE pPrinterEnum, // printer information buffer
    DWORD cbBuf, // size of printer information buffer
    LPDWORD pcbNeeded, // bytes received or required
    LPDWORD pcReturned // number of printers enumerated
    );
    in the platform SDK...

    "ananthakrishna" <ananthakrishna.p@cominsights.com> wrote:
    >
    >Hello
    >I want to list all the installed printers in my Program.
    >How can i do that.
    >Even if it is network printer i want to show.
    >Same thing i wan to do with scanners also.
    >I want to list all the scanner.
    >Thanks in advance
    >regards,
    >ananthakrishna



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links