Hi printer wizards...
I seem to have a strange problem and I spent a couple hours googgling,
and here, but no help was found. In our production environment, we
have a W2003 64 bit domain server with Active Directory. When my
program enumerates printers by using "EnumPrinters
(PRINTER_ENUM_REMOTE, ...", it returns all the AD printers as
expected. But in lab, the server is a 32 bit W2003 server, domain
controller with AD, and only has one printer installed (TCP/IP network
printer). It is listed in AD. But when I try to enum, what is
returned is a different printer that is located on one of the work
stations in the network (and which is not listed in AD, or otherwise
known to the server).
If I change to try using PRINTER_ENUM_NETWORK, then no printers are
returned. And it does not matter if I specify the name of the server
in the EnumPrinters call, or use NULL.
The only way I can get the servers' AD printers to enumerate is to use
PRINTER_ENUM_LOCAL. That works on the server, but is no good to me as
this program is intended to be used on workstations.
Anyone have any idea why this is happening?
Thanks, Russ
|