Re: How to read driver's VERSION_INFO resource?
From: Walter Oney (waltoney_at_oneysoft.com)
Date: 02/01/05
- Next message: serge: "ReadFile (win32 API) cannot read more than 64 MB in one chunk"
- Previous message: Kevin Burton: "Re: Task Scheduler API and 'at'"
- In reply to: Jerry Schneider: "How to read driver's VERSION_INFO resource?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 01 Feb 2005 12:04:12 -0500
Jerry Schneider wrote:
> Anyone know the answer or can point to some sample code? I
> would think that all drivers that have an IOCTL for returning
> Version would want to use the linked VS_VERISON_INFO rather
> than hoping to keep a constant in the driver in sync with
> the version resource.
If you absolutely, positively have to do this, there is a sample in my
WDM book that will do it. I think it's mostly a curiosity, though. I
simply use a tiny header named version.h with #define symbols name
VERMAJOR, VERMINOR, and BUILD. I build the version resource using that
header, and I also use it in selected parts of the driver code. I can't
really imagine why anything more complicated would be useful.
-- Walter Oney, Consulting and Training Basic and Advanced Driver Programming Seminars Check out our schedule at http://www.oneysoft.com
- Next message: serge: "ReadFile (win32 API) cannot read more than 64 MB in one chunk"
- Previous message: Kevin Burton: "Re: Task Scheduler API and 'at'"
- In reply to: Jerry Schneider: "How to read driver's VERSION_INFO resource?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|