pankaj1782
May 21st, 2006, 11:34 PM
hi all,
I need to retrieve the model name of the installed printer.
Actually i used Devicecapabilities but this API supporta the DC_MODEL value only for 95/98/Me and not NT/XP. So can't use it my case.
I also tried GetPrinter with level 2, and in this case, the PRINTER_INFO_2 structure's pDriverName field does give a value which is model name for my printer, but I am not sure that will it always return(i.e. in case of all printers) such a string, which is model name.
It will great if someone can help me out with this.
thanks
Pankaj
I need to retrieve the model name of the installed printer.
Actually i used Devicecapabilities but this API supporta the DC_MODEL value only for 95/98/Me and not NT/XP. So can't use it my case.
I also tried GetPrinter with level 2, and in this case, the PRINTER_INFO_2 structure's pDriverName field does give a value which is model name for my printer, but I am not sure that will it always return(i.e. in case of all printers) such a string, which is model name.
It will great if someone can help me out with this.
thanks
Pankaj