EnumPrinters PRINTER_ATTRIBUTE_LOCAL
- From: usfinecats <usfinecats@xxxxxxxxxxxxx>
- Date: Wed, 10 Dec 2008 19:42:01 -0800
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
.
- Follow-Ups:
- Re: EnumPrinters PRINTER_ATTRIBUTE_LOCAL
- From: John Savil
- Re: EnumPrinters PRINTER_ATTRIBUTE_LOCAL
- Prev by Date: RE: GDI rendering on top of OpenGL
- Next by Date: EnumPrinters PRINTER_INFO_5
- Previous by thread: GDI rendering on top of OpenGL
- Next by thread: Re: EnumPrinters PRINTER_ATTRIBUTE_LOCAL
- Index(es):
Relevant Pages
|