|
|
|
date: Thu, 3 Apr 2008 02:00:00 -0700,
group: microsoft.public.win32.programmer.gdi
back
Re: Need Printer Details
Thanks mark for your reply.
I verified Win32_Printer class details.
Using this class we can identify whether printer is local printer or N/W
printer.
Details like vendor, product, serial no., IP address(for N/W printers) and
MAC address are not available in this class.
I verified other classes like Win32_PrinterController,
Win32_PrinterConfiguration, Win32_PrinterDriver also but required details are
not available.
Any idea to get these details.
I shall try with Win32_TCPIPPrinterPort to see whether we can have IP
address(for N/W printers) and MAC address.
Please suggest.
Thanks,
Ajay
"Mark Salsbery [MVP]" wrote:
> The Win32_Printer WMI class may get you some of that information.
>
> Mark
>
> --
> Mark Salsbery
> Microsoft MVP - Visual C++
>
>
> "Ajay Shinde" wrote in message
> news:C662A8C9-B2F0-4482-8244-36375A89FD07@microsoft.com...
> > Hi All,
> >
> > I want to get details of printer like vendor, product, serial no., IP
> > address(for N/W printers) and MAC address.
> >
> > I have seen Win Spooler APIs like GetPrinter(), EnumPrinter() and
> > PRINTER_INFO_2 structure, however none of them gives above mentioned
> > parameters.
> >
> > Above mentioned attributes are vailable in registry, but as registry can
> > not
> > reliable source to get theses details with consistency it is not ood
> > option.
> >
> > Can we get these details from printer or any other source.
> > Please let me know which win API or windows method I need to use for this
> > purpose.
> >
> > Thanks,
> > Ajay
> >
date: Tue, 8 Apr 2008 06:34:00 -0700
author: Ajay Shinde
|
|