Article View: borland.public.cppbuilder.nativeapi
Article #15811Re: How get printer port name.
From: Vladimir Afanasyev
Date: Fri, 13 Jun 2003 11:05
Date: Fri, 13 Jun 2003 11:05
26 lines
1508 bytes
1508 bytes
Hi, "Salvador Huertas" <shuertasw@ghuertasauto.com> wrote: >I need get the printer port name giving the windows printer name. More or >less: > >PortName = Func(PrinterName); > >There are any function into the windows Api for do this?. > First OpenPrinter in : printer name out : printer handle tnen GetPrinter with level=2 in: printer handle, level out: PRINTER_INFO_2 member pPortName and ClosePrinter in: printer handle All function Win32 API Vladimir.
Technical Details
Message-ID:
<3ee9aff8$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!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ee9a7d5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7fbb6fa87f367c58 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-13 04:17:04 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: How get printer port name. Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.244.14.114 62.244.14.114 X-Forwarded-For: 192.168.0.147 References: <3ee9a7d5$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ee9aff8$1@newsgroups.borland.com> Date: 13 Jun 2003 04:05:28 -0700 X-Trace: newsgroups.borland.com 1055502328 207.105.83.65 (13 Jun 2003 04:05:28 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail