How can i get the printer driver version (2 or 3)?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to detect what version a printer driver is before I install it on
the system using the AddPrinterDriver api (this is on Windows 2K or XP). I
would like to know if it is a Version 3 or Version 2 printer driver. If I
use the drvQueryDriverInfo it will tell me if it is a kernel mode or user
mode driver. Is this of any use in determining the version? I can't seem to
find anything on the mdsn on this subject. Any help on this would be greatly
appreciated.
 
Hi Winguru,

it is very simple, get the driver file name form INF file.
now open the driver file with dependency walker, if DLL
is linked only with "WIN32K.SYS" then it is version 2
driver (kernel mode )



Hth,
--
With Thanks & Regards,
Shrinidhi.Kulkarni
25732293x5215

--
/*With Thanks & Regards,*/main(){char*s="-..0.*2*-
2.*#&.*.*.**&.*"
/*-Shrinidhi.Kulkarni-*/"**..*#&6.*.******.*.*#-
4&0.*****.0&*#2*."
/*25732293/96 X 5215*/"**.*****.*.*#&.*.**.*1***..*#-
...*.**2*-2.*#"
,_;while(_=*s/4)_-=8,printf("\n%*s"+!!_,_<<!!
*s,"_/_/_/"+*s++%4*2);}

__(_,i){return putchar(!i?_:' '),i?__(_,--i):(putchar
('\r'),_);}main(_){return _
==' '?_:__(main(_+_/_),_)^_["]!!!!!\224\\;<((.-\"h\/\227
\231\/\214_:(+4=(h/KK"]-'!';}
 
How can i do this programmatically using "C"

Shrinidhi.Kulkarni said:
Hi Winguru,

it is very simple, get the driver file name form INF file.
now open the driver file with dependency walker, if DLL
is linked only with "WIN32K.SYS" then it is version 2
driver (kernel mode )



Hth,
--
With Thanks & Regards,
Shrinidhi.Kulkarni
25732293x5215

--
/*With Thanks & Regards,*/main(){char*s="-..0.*2*-
2.*#&.*.*.**&.*"
/*-Shrinidhi.Kulkarni-*/"**..*#&6.*.******.*.*#-
4&0.*****.0&*#2*."
/*25732293/96 X 5215*/"**.*****.*.*#&.*.**.*1***..*#-
...*.**2*-2.*#"
,_;while(_=*s/4)_-=8,printf("\n%*s"+!!_,_<<!!
*s,"_/_/_/"+*s++%4*2);}

__(_,i){return putchar(!i?_:' '),i?__(_,--i):(putchar
('\r'),_);}main(_){return _
==' '?_:__(main(_+_/_),_)^_["]!!!!!\224\\;<((.-\"h\/\227
\231\/\214_:(+4=(h/KK"]-'!';}

-----Original Message-----
I am trying to detect what version a printer driver is before I install it on
the system using the AddPrinterDriver api (this is on Windows 2K or XP). I
would like to know if it is a Version 3 or Version 2 printer driver. If I
use the drvQueryDriverInfo it will tell me if it is a kernel mode or user
mode driver. Is this of any use in determining the version? I can't seem to
find anything on the mdsn on this subject. Any help on this would be greatly
appreciated.
.
 
Back
Top