Win32::Printer::Enum::Printer($server)



Has anyone ever managed to get Win32::Printer::Enum::Printer($server) to enumerate printers on a server?

I've tried $server with a plain server name e.g. "MYBOX" and "\\\\MYBOX" nither give any response. (Note I'm using an accound with Administrator priv at MYBOX).

Looking at MSDN it implies that the parameter to EnumPrinters() should be "Print Provider!!\\Machine" so I tried

   "win32spl.dll!!\\\\MYBOX"

and

   "win32spl!!\\\\MYBOX"

and

   "LanMan Print Services!!\\\\MYBOX"

Still Win32::Printer::Enum::Printer() stubbonly returns nothing.

.