Solved

How to get printer driver version from the registry

Posted on 2003-10-30
5
862 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
Comment Utility
From where in the registry are you trying to get this information?
0
 

Author Comment

by:aparida123
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now