🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14291

Re: How to get windows default printer?

#14291
From: Richard Yu
Date: Wed, 20 Aug 2003 16:54
162 lines
3460 bytes
I am using win2000, on my system , there is only one win.ini found, no
"device" tag there, the ini like this:
so , what can I do ,
thanks.
; for 16-bit app support

[fonts]

[extensions]

[mci extensions]

[files]

[Mail]

MAPI=1

CMC=1

CMCDLLNAME=mapi.dll

CMCDLLNAME32=mapi32.dll

MAPIX=1

MAPIXVER=1.0.0.1

OLEMessaging=1

[MCI Extensions.BAK]

asf=MPEGVideo

asx=MPEGVideo

ivf=MPEGVideo

m3u=MPEGVideo

mp2v=MPEGVideo

mp3=MPEGVideo

mpv2=MPEGVideo

wax=MPEGVideo

wm=MPEGVideo

wma=MPEGVideo

wmv=MPEGVideo

wvx=MPEGVideo

[OLFax Ports]

OLFModem=C:\Program Files\Microsoft
Office\Office\1033\WFXMSRVR.EXE,WFXMSRVR,WFXOUTLOOKSMTPPOP3, 60

[WinZip]

Note-1=This section is required only to install the optional WinZip Internet
Browser Support build 0231.

Note-2=Removing this section of the win.ini will have no effect except
preventing installation of WinZip Internet Browser Support build 0231.

[SciCalc]

layout=0

[FTWIN]

FTWINPATH=C:\PROGRA~1\INFORM\FUZZYT~1.5

[SuperScreenSaver]

xtra_delay4519716=67

[Direct3D]

debug=0

[DirectDraw]

debug=0

nohwblt=0

nohwtrans=0

nohwfill=0

[DirectPlay]

BreakOnAssert=0

Debug=0

[Debug]

DMBAND=0

DMCOMPOS=0

DMIME=0

DMLOADER=0

DMUSIC=0

DMUSIC16=0

DMUSIC32=0

DMSTYLE=0

DMSYNTH=0

DMSCRIPT=0

DInput.06=0x00

DInput.04=0x00

DInput.08=0x00

DInput.17=0x00

dinput=0x00

DSWAVE=2

DSDMO=2

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f42de67$1@newsgroups.borland.com...
>
> "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: <3f43a7cf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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> <3f42de67$1@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-20 10:11:02 PST
From: "Richard Yu" <richard@colorselector.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> <3f42de67$1@newsgroups.borland.com>
Subject: Re: How to get windows default printer?
Date: Wed, 20 Aug 2003 09:54:31 -0700
Lines: 164
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 24.207.7.224
Message-ID: <3f43a7cf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061398479 24.207.7.224 (20 Aug 2003 09:54:39 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail