Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Intel CPUs are not defective, they just act that way. -- Henry Spencer


devel / comp.os.ms-windows.programmer.win32 / Re: list of printers?

SubjectAuthor
* list of printers?T
+* Re: list of printers?JJ
|`* Re: list of printers?T
| `* Re: list of printers?R.Wieser
|  `* Re: list of printers?T
|   +* Re: list of printers?R.Wieser
|   |`* Re: list of printers?T
|   | `- Re: list of printers?R.Wieser
|   `* Re: list of printers?JJ
|    `- Re: list of printers?T
`* Re: list of printers?T
 `* Re: list of printers?R.Wieser
  `- Re: list of printers?T

1
list of printers?

<sbbonh$fa$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=186&group=comp.os.ms-windows.programmer.win32#186

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: list of printers?
Date: Sun, 27 Jun 2021 23:03:29 -0700
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <sbbonh$fa$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Jun 2021 06:03:29 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="26d2c1ceae40563b65faf43149317948";
logging-data="490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ClQ5LaZtW1coXKBaL1h6/iixNjPILwjI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:zsie87SVsFUI4kWf8i7XxVy/r/c=
Content-Language: en-DE
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: T - Mon, 28 Jun 2021 06:03 UTC

Hi All,

Is there a system call that will return a list
of all the printers or should I just read the
registry?

Many thanks,
-T

Re: list of printers?

<1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=187&group=comp.os.ms-windows.programmer.win32#187

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!AwNAe4J5zRLIli//7AW+ZA.user.gioia.aioe.org.POSTED!not-for-mail
From: jj4public@gmail.com (JJ)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Mon, 28 Jun 2021 18:26:46 +0700
Organization: Aioe.org NNTP Server
Lines: 11
Message-ID: <1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net>
References: <sbbonh$fa$1@dont-email.me>
NNTP-Posting-Host: AwNAe4J5zRLIli//7AW+ZA.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: 40tude_Dialog/2.0.15.84
X-Notice: Filtered by postfilter v. 0.9.2
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
 by: JJ - Mon, 28 Jun 2021 11:26 UTC

On Sun, 27 Jun 2021 23:03:29 -0700, T wrote:
> Hi All,
>
> Is there a system call that will return a list
> of all the printers or should I just read the
> registry?
>
> Many thanks,
> -T

Printer API has it.

Re: list of printers?

<sbcp2h$65b$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=188&group=comp.os.ms-windows.programmer.win32#188

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Mon, 28 Jun 2021 08:15:27 -0700
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <sbcp2h$65b$1@dont-email.me>
References: <sbbonh$fa$1@dont-email.me>
<1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Jun 2021 15:15:29 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="26d2c1ceae40563b65faf43149317948";
logging-data="6315"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bw17wYeJNJ5r4gVTjbhPQpWoS9pEdLDE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:qV2dD9F+vMvI6upLBTyUoUlkC7o=
In-Reply-To: <1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net>
Content-Language: en-DE
 by: T - Mon, 28 Jun 2021 15:15 UTC

On 6/28/21 4:26 AM, JJ wrote:
> On Sun, 27 Jun 2021 23:03:29 -0700, T wrote:
>> Hi All,
>>
>> Is there a system call that will return a list
>> of all the printers or should I just read the
>> registry?
>>
>> Many thanks,
>> -T
>
> Printer API has it.
>

This one?

https://docs.microsoft.com/en-us/windows/win32/printdocs/enumprinters

Re: list of printers?

<sbdb2d$n7b$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=189&group=comp.os.ms-windows.programmer.win32#189

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Mon, 28 Jun 2021 22:22:31 +0200
Organization: Aioe.org NNTP Server
Lines: 17
Message-ID: <sbdb2d$n7b$1@gioia.aioe.org>
References: <sbbonh$fa$1@dont-email.me> <1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net> <sbcp2h$65b$1@dont-email.me>
NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Response
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
 by: R.Wieser - Mon, 28 Jun 2021 20:22 UTC

T,

> This one?
>
> https://docs.microsoft.com/en-us/windows/win32/printdocs/enumprinters

Thats one of them. It could not hurt to take a peek at the other functions
in that group ("see also", "Print Spooler API Functions") though.

Depending on what exactly you are looking for - all currently usable
printers, or just a list of possible ones (with drivers installed for them)
or something other - the function(s) you need might differ.

Regards,
Rudy Wieser

Re: list of printers?

<sbddb1$e7j$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=190&group=comp.os.ms-windows.programmer.win32#190

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Mon, 28 Jun 2021 14:01:19 -0700
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <sbddb1$e7j$1@dont-email.me>
References: <sbbonh$fa$1@dont-email.me>
<1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net> <sbcp2h$65b$1@dont-email.me>
<sbdb2d$n7b$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Jun 2021 21:01:21 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="26d2c1ceae40563b65faf43149317948";
logging-data="14579"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HIwOc+epTmWHtrZMmHWhq2pRsBMaKPv0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:f76iho1S13IhbbkV6Jht5mH+9E0=
In-Reply-To: <sbdb2d$n7b$1@gioia.aioe.org>
Content-Language: en-DE
 by: T - Mon, 28 Jun 2021 21:01 UTC

On 6/28/21 1:22 PM, R.Wieser wrote:
> T,
>
>> This one?
>>
>> https://docs.microsoft.com/en-us/windows/win32/printdocs/enumprinters
>
> Thats one of them. It could not hurt to take a peek at the other functions
> in that group ("see also", "Print Spooler API Functions") though.
>
> Depending on what exactly you are looking for - all currently usable
> printers, or just a list of possible ones (with drivers installed for them)
> or something other - the function(s) you need might differ.
>
> Regards,
> Rudy Wieser
>
>

Hi Rudy,

Under Windows 10, I have found the Devices and Printers
does not always list all the printers -- very frustrating
at times.

I find the missing printers by going into any program
with a print dialog and finding them in the pull down.

So I wanted to write a program that would give me a
quick list of printers, so I can see what is missing
from Devices and Printers.

This is what I wrote for Linux:

$ ListPrinters.pl6
nCount <5>
$i = <0> printer: <B4350>
$i = <1> printer: <Cups-PDF>
$i = <2> printer: <Cups_PDF_rn6>
$i = <3> printer: <Oki_B4350_on_dev_lp0_rn6>
$i = <4> printer: <Virtual_PDF_Printer>

I wanted to add an OS check to the above program
so it would give me Windows as well as Linux
printers.

-T

Re: list of printers?

<sbekop$ab7$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=191&group=comp.os.ms-windows.programmer.win32#191

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Tue, 29 Jun 2021 10:14:05 +0200
Organization: Aioe.org NNTP Server
Lines: 19
Message-ID: <sbekop$ab7$1@gioia.aioe.org>
References: <sbbonh$fa$1@dont-email.me> <1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net> <sbcp2h$65b$1@dont-email.me> <sbdb2d$n7b$1@gioia.aioe.org> <sbddb1$e7j$1@dont-email.me>
NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
X-Notice: Filtered by postfilter v. 0.9.2
 by: R.Wieser - Tue, 29 Jun 2021 08:14 UTC

T,

> Under Windows 10, I have found the Devices and Printers
> does not always list all the printers -- very frustrating
> at times.
>
> I find the missing printers by going into any program
> with a print dialog and finding them in the pull down.

Thats pretty-much what I'm talking about : the first might be showing the
physical printers you can actually print to and the second a list of
/possible/ printers.

Alas, I've got no idea which of the functions returns which group though.

Regards,
Rudy Wieser

Re: list of printers?

<sben3u$ji8$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=192&group=comp.os.ms-windows.programmer.win32#192

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Tue, 29 Jun 2021 01:54:22 -0700
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <sben3u$ji8$1@dont-email.me>
References: <sbbonh$fa$1@dont-email.me>
<1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net> <sbcp2h$65b$1@dont-email.me>
<sbdb2d$n7b$1@gioia.aioe.org> <sbddb1$e7j$1@dont-email.me>
<sbekop$ab7$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 29 Jun 2021 08:54:23 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="deeaba8ee59e14859ce0948b8e32b903";
logging-data="20040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PfjN2dCXuMOAuV+4hRfWnZxifcRLbx0s="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:34Bgy5B5ZSjB76Cqpgl6htHWjeQ=
In-Reply-To: <sbekop$ab7$1@gioia.aioe.org>
Content-Language: en-DE
 by: T - Tue, 29 Jun 2021 08:54 UTC

On 6/29/21 1:14 AM, R.Wieser wrote:
> T,
>
>> Under Windows 10, I have found the Devices and Printers
>> does not always list all the printers -- very frustrating
>> at times.
>>
>> I find the missing printers by going into any program
>> with a print dialog and finding them in the pull down.
>
> Thats pretty-much what I'm talking about : the first might be showing the
> physical printers you can actually print to and the second a list of
> /possible/ printers.
>
> Alas, I've got no idea which of the functions returns which group though.
>
> Regards,
> Rudy Wieser
>
>

but, but, but ...

Re: list of printers?

<sbf5p7$1ul1$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=193&group=comp.os.ms-windows.programmer.win32#193

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Tue, 29 Jun 2021 15:04:32 +0200
Organization: Aioe.org NNTP Server
Lines: 16
Message-ID: <sbf5p7$1ul1$1@gioia.aioe.org>
References: <sbbonh$fa$1@dont-email.me> <1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net> <sbcp2h$65b$1@dont-email.me> <sbdb2d$n7b$1@gioia.aioe.org> <sbddb1$e7j$1@dont-email.me> <sbekop$ab7$1@gioia.aioe.org> <sben3u$ji8$1@dont-email.me>
NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Tue, 29 Jun 2021 13:04 UTC

T,

> but, but, but ...

:-)

Something I would try is to see if I could, from such "any program with a
print dialog" list all the functions from DLLs it uses, filter out the ones
in the "spool" DLL, and see if I could figure out which one is the dialog
showing those "missing printers" - and from there see if MSDN has some more
info on what it actually does (where it gets it printers from).

Regards,
Rudy Wieser

Re: list of printers?

<1d8xbu2h3jiwh.hn1k0o4u0bdt$.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=194&group=comp.os.ms-windows.programmer.win32#194

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!AwNAe4J5zRLIli//7AW+ZA.user.gioia.aioe.org.POSTED!not-for-mail
From: jj4public@gmail.com (JJ)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Wed, 30 Jun 2021 04:07:56 +0700
Organization: Aioe.org NNTP Server
Lines: 9
Message-ID: <1d8xbu2h3jiwh.hn1k0o4u0bdt$.dlg@40tude.net>
References: <sbbonh$fa$1@dont-email.me> <1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net> <sbcp2h$65b$1@dont-email.me> <sbdb2d$n7b$1@gioia.aioe.org> <sbddb1$e7j$1@dont-email.me>
NNTP-Posting-Host: AwNAe4J5zRLIli//7AW+ZA.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: 40tude_Dialog/2.0.15.84
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Notice: Filtered by postfilter v. 0.9.2
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
 by: JJ - Tue, 29 Jun 2021 21:07 UTC

On Mon, 28 Jun 2021 14:01:19 -0700, T wrote:
>
> I wanted to add an OS check to the above program
> so it would give me Windows as well as Linux
> printers.

Linux printers must be made recognizable and accessible by Windows systems
from the Linux itself, either as SMB shares, UPnP devices, or Internet
Printers.

Re: list of printers?

<sbg56g$isu$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=195&group=comp.os.ms-windows.programmer.win32#195

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Tue, 29 Jun 2021 15:00:48 -0700
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <sbg56g$isu$1@dont-email.me>
References: <sbbonh$fa$1@dont-email.me>
<1teuugpsxu172$.1t68ojviba0m0.dlg@40tude.net> <sbcp2h$65b$1@dont-email.me>
<sbdb2d$n7b$1@gioia.aioe.org> <sbddb1$e7j$1@dont-email.me>
<1d8xbu2h3jiwh.hn1k0o4u0bdt$.dlg@40tude.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 29 Jun 2021 22:00:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="72d0bc04557d6bafff9e32b90b06983b";
logging-data="19358"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vrpeg4zBEIva9jUZq695iZ/l1RY+J08g="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:OCxvz044HHnjrFoMedxpy7/nCHI=
In-Reply-To: <1d8xbu2h3jiwh.hn1k0o4u0bdt$.dlg@40tude.net>
Content-Language: en-DE
 by: T - Tue, 29 Jun 2021 22:00 UTC

On 6/29/21 2:07 PM, JJ wrote:
> On Mon, 28 Jun 2021 14:01:19 -0700, T wrote:
>>
>> I wanted to add an OS check to the above program
>> so it would give me Windows as well as Linux
>> printers.
>
> Linux printers must be made recognizable and accessible by Windows systems
> from the Linux itself, either as SMB shares, UPnP devices, or Internet
> Printers.
>

CUPS (Common Unix Printing System) is pretty good
at find everything, including your surroundings.

Now I want to add Windows support to my program
as well

Re: list of printers?

<sbhl45$ifi$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=196&group=comp.os.ms-windows.programmer.win32#196

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Wed, 30 Jun 2021 04:38:45 -0700
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <sbhl45$ifi$1@dont-email.me>
References: <sbbonh$fa$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 30 Jun 2021 11:38:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="72d0bc04557d6bafff9e32b90b06983b";
logging-data="18930"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YbbvYlJJV/jXMgTFAVlq0LOCpUyJsf+k="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:yoKhd03HFx8po51QjlZ7v1OtDlQ=
In-Reply-To: <sbbonh$fa$1@dont-email.me>
Content-Language: en-DE
 by: T - Wed, 30 Jun 2021 11:38 UTC

On 6/27/21 11:03 PM, T wrote:
> Hi All,
>
> Is there a system call that will return a list
> of all the printers or should I just read the
> registry?
>
> Many thanks,
> -T

Found it!

https://docs.microsoft.com/en-us/dotnet/api/system.drawing.printing.printersettings.installedprinters?redirectedfrom=MSDN&view=net-5.0#System_Drawing_Printing_PrinterSettings_InstalledPrinters

Re: list of printers?

<sbhmuf$1o8m$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=197&group=comp.os.ms-windows.programmer.win32#197

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Wed, 30 Jun 2021 14:09:42 +0200
Organization: Aioe.org NNTP Server
Lines: 15
Message-ID: <sbhmuf$1o8m$1@gioia.aioe.org>
References: <sbbonh$fa$1@dont-email.me> <sbhl45$ifi$1@dont-email.me>
NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Response
 by: R.Wieser - Wed, 30 Jun 2021 12:09 UTC

T,

> Found it!
>
> https://docs.microsoft.com/en-us/dotnet/api/system.drawing.printing.printersettings.installedprinters?redirectedfrom=MSDN&view=net-5.0#System_Drawing_Printing_PrinterSettings_InstalledPrinters

I hope you do realize that is .NET specific/dependant ...

I'm fairly sure you can get the same results using the "spool" group of
(simple) functions though.

Regards,
Rudy Wieser

Re: list of printers?

<sbi54l$ih8$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=198&group=comp.os.ms-windows.programmer.win32#198

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: list of printers?
Date: Wed, 30 Jun 2021 09:12:05 -0700
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <sbi54l$ih8$1@dont-email.me>
References: <sbbonh$fa$1@dont-email.me> <sbhl45$ifi$1@dont-email.me>
<sbhmuf$1o8m$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 30 Jun 2021 16:12:05 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="72d0bc04557d6bafff9e32b90b06983b";
logging-data="18984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183gbNUdzKbj3gswSFzW4NyinJZe8Jug+M="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:hL3ihiX8GoEZHRVogbloKIS//rk=
In-Reply-To: <sbhmuf$1o8m$1@gioia.aioe.org>
Content-Language: en-DE
 by: T - Wed, 30 Jun 2021 16:12 UTC

On 6/30/21 5:09 AM, R.Wieser wrote:
> T,
>
>> Found it!
>>
>> https://docs.microsoft.com/en-us/dotnet/api/system.drawing.printing.printersettings.installedprinters?redirectedfrom=MSDN&view=net-5.0#System_Drawing_Printing_PrinterSettings_InstalledPrinters
>
> I hope you do realize that is .NET specific/dependant ...
>
> I'm fairly sure you can get the same results using the "spool" group of
> (simple) functions though.
>
> Regards,
> Rudy Wieser
>
>

Missed that. Damn.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor