For Programmers: Free Programming Magazines  


Home > Archive > MSDN > April 2006 > Use registry key PrinterPrivateData to detect a physical/virtual printer?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Use registry key PrinterPrivateData to detect a physical/virtual printer?
AT

2006-04-19, 6:57 pm

Hola,

I am programmatically trying to identify a physical printer like "HP
LaserJet 4050 Series PCL" and "Brother HL-P2000" from virtual
printers like "Microsoft Office Document Image Writer" and "Microsoft
Office Live Meeting Document Writer" and "Adobe PDF"

Is it safe to assume that each physical printer will have a value(s)
under the key HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Print\Printers\<printer-name>\PrinterPrivateData?

What is the significance of key HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Print\Printers\<printer-name>\PrinterPrivateData?

Is there a possibility that a real physical printer may not have
anything under PrinterPrivateData?

I observed that the virtual printers either dont have anything under
PrinterPrivateData or they have (incase of Adobe PDF) a key
"PromptForFileName" set to 1 under PrinterPrivateData.

If this is correct, I can read these values using API GetPrinterData().

Any help would be appreciated. Thanks,


AT

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com