none
Bold brackets in INF file RRS feed

  • Question

  • Hello,

    I was going through below link.

    https://docs.microsoft.com/en-us/windows-hardware/drivers/install/general-syntax-rules-for-inf-files

    As per this INF is a text file. But to differentiate between required and option sections, its mentioned as bold brackets [] and unbold brackets []. I am not sure how in text file (Notepad) we can have bold/unbold. May be in word document it might be possible.


    Thanks & Regards

    Vishnu Beema

    • Moved by Bruce Eitman Friday, October 6, 2017 1:50 PM Moved because question is about Windows Driver Development
    Wednesday, October 4, 2017 4:42 AM

Answers

  • You don't use BOLD and UNBOLD brackets.   What this is, is a note that the documentation uses BOLD brackets where they are required, but encloses optional sections.

    So the documentation page has:

    [Version]

    Signature="signature-name"
    [Class=class-name]
    ...

    Which in a real INF would be:

    [Version]
    Signature="$Windows NT$"
    Class=DiskDrive
    

    Or it might be that the Class is not even specified.

    So don't worry you do not need an editor with BOLD and INF file is plain text.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Friday, October 6, 2017 2:27 PM

All replies

  • Windows CE doesn't use INF files, so what are you doing?

    With that said, the documentation that you are looking at has other pages.  On (https://docs.microsoft.com/en-us/windows-hardware/drivers/install/general-guidelines-for-inf-files) it says:

    "You can create or modify an INF file by using any text editor in which you can control the insertion of line breaks. If your INF contains non-ASCII characters, save the file as a Unicode file."


    Bruce Eitman
    Senior Engineer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for Synopsys

    Wednesday, October 4, 2017 12:55 PM
  • Doh, Unicode won't help with BOLD...  Sorry for sending you in that direction.

    Bruce Eitman
    Senior Engineer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for Synopsys

    Wednesday, October 4, 2017 5:21 PM
  • You don't use BOLD and UNBOLD brackets.   What this is, is a note that the documentation uses BOLD brackets where they are required, but encloses optional sections.

    So the documentation page has:

    [Version]

    Signature="signature-name"
    [Class=class-name]
    ...

    Which in a real INF would be:

    [Version]
    Signature="$Windows NT$"
    Class=DiskDrive
    

    Or it might be that the Class is not even specified.

    So don't worry you do not need an editor with BOLD and INF file is plain text.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Friday, October 6, 2017 2:27 PM
  • Hello Don,

    Thank you for your answer. Now I understood.

    Thanks & Regards

    Vishnu Beema

    Sunday, November 5, 2017 12:55 PM