Solved

How to get printer driver version from the registry

Posted on 2003-10-30
5
885 Views
Last Modified: 2010-08-05
Ca anybody tell me how to display printer driver version using VC++

right now I ma seeing the driver version is in REG_BINARY  I want to disply in string. Can you pl tell me how to do it.

Thanks
Abinash
0
Comment
Question by:aparida123
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 9650083
From where in the registry are you trying to get this information?
0
 

Author Comment

by:aparida123
ID: 9652947
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Print/Windows NT x86/Drivers/Version-3/HP LaserJet 1200 Series PCL

Field name: DriverVersion
0
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 9657866
I would not rely on that registry entry - just checked the machines around here and got binary zeros for that. Bettr take the driver'd DLL name and retieve the verson from the file using the technique presented in http://support.microsoft.com/default.aspx?scid=kb;en-us;167597 ("SAMPLE: GetVers.exe Specifies Component FileVersion and #Version")
0
 
LVL 9

Expert Comment

by:tinchos
ID: 10546314
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: jkr {http:#9657866}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question