EnumPrinters PRINTER_ATTRIBUTE_LOCAL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




for xp and vista PRINTER_ATTRIBUTE_LOCAL is 0x40.

I'm calling the EnumPrinters() api with various info levels 1,2,4,5.

I am testing on a Workgroup configuration -- not a domain.

These calls to EnumPrinters

return EnumPrinters(PRINTER_ENUM_LOCAL,
NULL,
InfoLevel,
Buffer,
BufferSize,
&BufSizeNeeded,
NumPrinters);

on return NumPrinters = 4.
NO PRINTERS are connected to the machine under test.
YET, The attributes returned indicate that PRINTER_ATTRIBUTE_LOCAL is set.
And it identifies the location of the printers correctly.



Have I made the call incorrectly, is this buggy code. Does
PRINTER_ATTRIBUTE_LOCAL simply mean on my local network?

I want to find out about printers that are specifically connected to my
machine.





--
Gak -
Finecats
.



Relevant Pages

  • Re: EnumPrinters PRINTER_ATTRIBUTE_LOCAL
    ... When I said the printers were not connected to the machine, ... Gak - ... I'm calling the EnumPrinters() api with various info levels 1,2,4,5. ... I am testing on a Workgroup configuration -- not a domain. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: InstalledPrinters and Windows Server 2003 R2
    ... the EnumPrinters line it just stops and does not return an error. ... I found that InstalledPrinters had problems when one or more printers had ... I had to fall back on the EnumPrinters API. ... run the same code on a Win XP box all installed printers are listed. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Windows CE + EnumPrinters
    ... EnumPrinters() is not supported on CE. ... I am newbie in Windows CE Developement, I am writing a very simple ... printers installed on machine, For that I am using EnumPrinters API, I ... What I need to do to enumerate printers ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Is there something better than EnumPrinters?
    ... Checkout msdn and there are samples out there which you can take and use. ... Vipin Aravind ... > information on all the printers currently installed than EnumPrinters. ...
    (microsoft.public.vc.mfc)
  • Re: Win32::Printer::Enum::Printer($server)
    ... > priv at MYBOX). ... > Looking at MSDN it implies that the parameter to EnumPrinters() should ... In the Printers() function I see the following code: ...
    (comp.lang.perl.modules)