How to Create an INF for a WDF Driver Package

In the INF format, each line contains one of following two basic types of entry:

  • Section An INF contains multiple sections that are indicated by square brackets around the name, such as [Version]. Some standard sections are required for all INFs, and other sections are optional. You can also define custom sections that are specific to a particular INF.

  • Directive Each section contains one or more key=value pairs called directives, which are used to specify installation-related data.

The example in Example 20-1 is the [Version] section from the Fx2_Driver sample’s INF. It contains six directives.

Example 20-1. Fx2_Driver sample [Version] section

[Version] Signature="$Windows NT$" Class=Sample ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} ...

Get Developing Drivers with the Windows® Driver Foundation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.