note 72724 added to function.printer-list
| From: | ewildeahtbsmdevelopmentdawtcom at osu1 dot php dot net | Date: | Wed, 31 Jan 2007 03:21:34 +0000 |
| Subject: | note 72724 added to function.printer-list | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122387@lists.php.net to get a copy of this message | ||
printer_list was not working for me and the docs are a little sparse. So, I took a look at the code
for php_printer.dll (which is at http://viewcvs.php.net/viewvc.cgi/pecl/printer/printer.c,
BTW) to figure out what was going on.
Basically, this function is a wrapper for the Windows function EnumPrinters. You can find this
function documented in MSDN (which is at http://msdn.microsoft.com). Do a search for EnumPrinters and
you should see the function itself as the first hit in the search list.
There is a lot more information about what the parameters to the function mean and the results
returned. The printer_list function basically copies the enumtype, name and level parameters
directly to the Flags, Name and Level parameters of EnumPrinters, calls the function and then copies
all of the fields, in the appropriate data structure returned for the level of information
requested, back to the results array.
----
Server IP: 64.71.164.2
Probable Submitter: 141.154.123.46
----
Manual Page -- http://www.php.net/manual/en/function.printer-list.php
Edit -- https://master.php.net/note/edit/72724
Del: integrated -- https://master.php.net/note/delete/72724/integrated
Del: useless -- https://master.php.net/note/delete/72724/useless
Del: bad code -- https://master.php.net/note/delete/72724/bad+code
Del: spam -- https://master.php.net/note/delete/72724/spam
Del: non-english -- https://master.php.net/note/delete/72724/non-english
Del: in docs -- https://master.php.net/note/delete/72724/in+docs
Del: other reasons-- https://master.php.net/note/delete/72724
Reject -- https://master.php.net/note/reject/72724
Search -- https://master.php.net/manage/user-notes.php