Programatically getting driver version

Hi,

I use Compuware Driver Works for my driver development. My driver links
with a resource file which provides version and copyright info. In the
device manager, under “Driver Details” for my device, it shows the
“FileVersion” from the resource file.

How can I get this information from an application? If the app can’t get it
directly, can the driver, which could then pass it back to the app? I have
searched around but can’t find the answer.

Thanks,

Russ Poffenberger
NPTest, Inc.
xxxxx@NPTest.com

GetFileVersionInfo() can be used to fetch version information from the
driver’s .SYS file.

Good luck,

Thomas F. Divine
www.rawether.net

“Russ Poffenberger” wrote in message
news:xxxxx@ntdev…
>
> Hi,
>
> I use Compuware Driver Works for my driver development. My driver links
> with a resource file which provides version and copyright info. In the
> device manager, under “Driver Details” for my device, it shows the
> “FileVersion” from the resource file.
>
> How can I get this information from an application? If the app can’t get
it
> directly, can the driver, which could then pass it back to the app? I have
> searched around but can’t find the answer.
>
> Thanks,
>
>
> Russ Poffenberger
> NPTest, Inc.
> xxxxx@NPTest.com
>
>
>

It’s sometimes easier, though, to just compile the driver version into
the driver (using the same #defines as you put in your resource file)
and then have the driver report it back its version via some already
existing API mechanism… (avoids the worry about “how do I find the
.sys file, then”).

Thomas F. Divine wrote:

GetFileVersionInfo() can be used to fetch version information from the
driver’s .SYS file.

Good luck,

Thomas F. Divine
www.rawether.net

“Russ Poffenberger” wrote in message
> news:xxxxx@ntdev…
>
>>Hi,
>>
>>I use Compuware Driver Works for my driver development. My driver links
>>with a resource file which provides version and copyright info. In the
>>device manager, under “Driver Details” for my device, it shows the
>>“FileVersion” from the resource file.
>>
>>How can I get this information from an application? If the app can’t get
>
> it
>
>>directly, can the driver, which could then pass it back to the app? I have
>>searched around but can’t find the answer.
>>
>>Thanks,
>>
>>
>>Russ Poffenberger
>>NPTest, Inc.
>>xxxxx@NPTest.com
>>
>>
>>
>
>
>
>
>


…/ray..

At 11:26 AM 11/10/2003 -0500, Thomas F. Divine wrote:

GetFileVersionInfo() can be used to
fetch version information from the

driver’s .SYS file.

Good luck,

Thanks for the reply.

However, the difficulty in this is knowing the filename of the driver
.sys file in a general sense (assuming you know nothing other than the
device link to open). I have the symbolic link to open the device, but
this does not point me to the driver filename (that I know of).

Is there some other method, or a way to use the device link name to get
the driver .sys file path?

“Russ Poffenberger” wrote in
message

news:xxxxx@ntdev

>

> Hi,

>

> I use Compuware Driver Works for my driver development. My driver
links

> with a resource file which provides version and copyright info. In
the

> device manager, under “Driver Details” for my device, it
shows the

> “FileVersion” from the resource file.

>

> How can I get this information from an application? If the app can’t
get

it

> directly, can the driver, which could then pass it back to the app?
I have

> searched around but can’t find the answer.

>


Russ Poffenberger

NPTest, Inc.

xxxxx@NPTest.com