List Info

Thread: note 72724 added to function.printer-list




note 72724 added to function.printer-list
user name
2007-01-30 21:21:34
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  -- h
ttps://master.php.net/note/delete/72724/integrated
Del: useless     -- http
s://master.php.net/note/delete/72724/useless
Del: bad code    -- htt
ps://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     -- http
s://master.php.net/note/delete/72724/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/72724
Reject      -- https://mast
er.php.net/note/reject/72724
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )