PDA

View Full Version : How to get printer name attached through LPT Port?



gurmeetsingh
20th April 2012, 15:18
Hi,

How i can get the printer description which has been attached through LPT port?
I am able to get same information when attached with usb using lsusb and now i want to get the same info when attached through LPT port.

In case of MS Windows, When attached printer (PNP enabled and on LPT port) switched on then a ballon is displaying at right bottom of screen showing name of printer also i can get all the information from windows registry at path HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\LPTEN UM\NameofPrinter.

Please guide me how i can get same in ubuntu using Qt or any C/C++ code.

Thanks in advance.