windbg extension to get a driver version

Hi,
Is there a way to get the driver version (as specifiied in the .rc, resource
file) thru a windbg extension?

I mean, lets say I have the core file of my driver and among other info that
i try to get thru a debug extn, I also want the version which was specified
in the resource file when I built the driver.

So how can I write such an extension ?

Any help would be appreciated.

Thanks,
Atul


BharatMatrimony.com. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74
India’s premium matrimonial website.

(1) No easy way I know of.
(2) Use the lm v command to see the date
(3) Use !drivers command
(4) Store the version info in a varable in your driver and then write a
windbg command to get that varable.
(5) Use dumpbin to get the offset of the .rsrc section where this
information is stored and then us the d command along with the base
address of your driver gotten with !drivers or lm v command.

Some other ideas

!lmi
!dll -v

Hope that helps

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of William Michael
Jones
Sent: Tuesday, November 04, 2003 7:19 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: windbg extension to get a driver version

(1) No easy way I know of.
(2) Use the lm v command to see the date
(3) Use !drivers command
(4) Store the version info in a varable in your driver and then write a
windbg command to get that varable.
(5) Use dumpbin to get the offset of the .rsrc section where this
information is stored and then us the d command along with the base
address of your driver gotten with !drivers or lm v command.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com