Article View: borland.public.cppbuilder.nativeapi
Article #14282Re: How to get windows default printer?
From: Remy Lebeau (TeamB)
Date: Wed, 20 Aug 2003 02:42
Date: Wed, 20 Aug 2003 02:42
21 lines
1797 bytes
1797 bytes
"Richard Yu" <richard@colorselector.com> wrote in message
news:3f42b824@newsgroups.borland.com...
> without the PRINTER_ENUM_CONNECTIONS , the count
> return 0; sounds no printer found .
Well, I did tell you earlier what to do in situations where EnumPrinters()
returns no printers:
"If EnumPrinters() fails to find the printer, then fallback to looking
at the "device" value in the "windows" section of the system's WIN.INI
file."
Gambit
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/03
Technical Details
Message-ID:
<3f42de67$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f415360$1@newsgroups.borland.com> <3f41597f$2@newsgroups.borland.com> <3f427f92$1@newsgroups.borland.com> <3f42a272$1@newsgroups.borland.com> <3f42b824@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,16abfae200d036ee X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-19 19:40:05 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f415360$1@newsgroups.borland.com> <3f41597f$2@newsgroups.borland.com> <3f427f92$1@newsgroups.borland.com> <3f42a272$1@newsgroups.borland.com> <3f42b824@newsgroups.borland.com> Subject: Re: How to get windows default printer? Date: Tue, 19 Aug 2003 19:42:11 -0700 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f42de67$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061346919 207.175.226.26 (19 Aug 2003 19:35:19 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail