Operating System - HP-UX
1824842 Members
3906 Online
109674 Solutions
New Discussion

Urgent: Help needed in finding Printer Protocol Name

 
panchpan
Regular Advisor

Urgent: Help needed in finding Printer Protocol Name

We need to find the PRINTER PROTOCOL name as a part of requirement in our project . The Printer Protocol would be something like LPR/LPD/RAW etc.
Can any one of you please suggest us with some API's / functions that can fetch this detail. Or Information on where this Protocol name is stored in Registry/System also would be helpful.

Note : We tried to fetch this info using WMI class "Win32_TCPIPPrinterPort". But it is returning Empty value for Protocol. (I think this class returns values only on Windows Vista). We also tried using general Printer APIs which expose properties more on Printer settings but none on the Protocol, the printer uses.

Any help is highly appreciated as this is a key (Urgent) requirement for us.

FYI, Definition of a Printer Protocol:

Printer Protocol : "The commands and functions used to print a job on a network printer. It manages the submission of print jobs by maintaining queues and controlling the transfer of their contents to the printer. It also enables the user to determine the capabilities of the printer and the status of the job and be able to cancel it. It may provide flow control if the underlying transport protocol does not (UDP, IPX, etc.).

A unidirectional protocol such as LPR/LPD is mainly responsible for job submission. However, full-featured, bi-directional protocols such as PAP and NDPS include sophisticated printer management, responding to messages and alerts from the printer. The primary printing protocols are the LPR/LPD Unix standard, Apple's PAP, Novell's QMS and NDPS, HP's JetDirect and the Internet's IPP."

Thank you!