Re: How to read driver's VERSION_INFO resource?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Walter Oney (waltoney_at_oneysoft.com)
Date: 02/01/05


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


Relevant Pages

  • Re: Incorporating a 3rd party driver into a BSP/Image
    ... any sample code, I though we were talking about a the Summit binaries. ... folder and run? ... As far as 'making it part of my BSP', I'm not sure what that means ... driver into its own catalog item and add/remove them from any OS ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to read drivers VERSION_INFO resource?
    ... > Anyone know the answer or can point to some sample code? ... > would think that all drivers that have an IOCTL for returning ... > the version resource. ... and I also use it in selected parts of the driver code. ...
    (microsoft.public.development.device.drivers)
  • Re: PCI Driver - Read/Write to Base Address
    ... Can you utilize ioctl for a pci device driver? ... Is there a sample code with ioctl being utilized for a pci device ...
    (comp.os.linux.development.system)
  • Serial COMx - how to start, sample code?
    ... some time ago I downloaded some sample code for COM / ASYNC ... I need to switch ... callback from driver when last byte is transfered to proper ...
    (comp.os.os2.programmer.misc)
  • Re: Cant load bulkusb.sys into the system?
    ... One presumes you are building it for the correct target OS or earlier ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... I know it maybe good good source code for latest version, ... but it doesn't apply to bulkusb sample code. ...
    (microsoft.public.development.device.drivers)