Re: How can I access version data from the .rc file in kernel mode?

Thanks… that is what I have decided to do. :slight_smile:

At 03:47 AM 10/10/2002, you wrote:

This may help.

In your version.h:
#define MY_VERSION_COMMA 1,2,3,4
#define MY_VERSION_DOTTED “5.6.7.8”

in your rc file:
#include “version.h”

FILEVERSION MY_VERSION_COMMA

VALUE “FileVersion”, MY_VERSION_DOTTED

Do the same for any other versions or whatever
Now at least all of your version changing can be in one place…so you won’t
forget to change them all :slight_smile:

Chris

“Justin Frodsham” wrote in message news:xxxxx@ntdev…
> >
> > I have an IOCTL to retrieve the driver version, but I am sick of changing
> > it in the resource file and my version.h include file (more like I keep
> > forgetting to change both). In user mode you can call
> > GetFileVersionInfo(). Is there some simple way to do this in kernel mode?
> > I tried making the .rc file include my version file, but then you can not
> > use the resource editor. It seems like there has got to be a simple way
> > to do this.
> >
> > -Justin
> >
> >
>
>
>
>—
>You are currently subscribed to ntdev as: zeppelin@io.com
>To unsubscribe send a blank email to %%email.unsub%%