Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

What is the correct way to add file version, copyright etc.. to .sys file in VS2017 ?

iFengHuangiFengHuang Member Posts: 41
edited May 3 in NTDEV

Like this:

I know there's a few ways in forum, but is it a offical document descripe about this for driver ?

Post edited by iFengHuang on

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,213

    Create an RC file. Add it to the project. We create the file with a text editor, sort of like shown here. Just get an RC file from a WDK sample and edit it with notepad.
     
    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • iFengHuangiFengHuang Member Posts: 41

    Thanks your reply.
    I had try to add it via VS right-click menu, and open xxx.rc in Resource Explorer, but get fatal erro RC1015 cannot open include file winres.h.

    I try to include the path of winres.h but same result.

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,213

    Did you add it in the "Resource Files" section?

    Peter Viscarola
    OSR
    @OSRDrivers

  • iFengHuangiFengHuang Member Posts: 41
    edited May 3

    Sure, but now I write it manually in plain text, not the Resource Editor, build success.

    I prefer to use editors to edit them rather than hand-written text, if possible. :smile:

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,213

    I prefer to use editors to edit them rather than hand-written text, if possible

    For drivers, you're better off using notepad.

    So, you're all set now?

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • iFengHuangiFengHuang Member Posts: 41

    So, you're all set now?

    Yes, all works well except the resource editor, thank you very much ! :wink:

  • AndreyBazhanAndreyBazhan Member Posts: 2

    Try this approach https://github.com/AndreyBazhan/Version. In step 2, though, add Version.rc to your rc file using notepad.exe or F7.

    #ifndef APSTUDIO_INVOKED

    #include "Version.rc"

    #endif

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA