Muokkaa

Jaa


Framework Library Versioning

In this topic, you'll learn about the naming conventions for the file names of the Kernel-Mode Driver Framework (KMDF) library and the User-Mode Driver Framework (UMDF) library.

KMDF

A major version number and a minor version number are assigned to each version of the KMDF library. The library's file name contains the major version number. The file name's format is:

Wdf<MajorVersionNumber>000.sys

The major version number uses two characters. For example, the file name for version 1.0 of the library is Wdf01000.sys. Versions 1.9, 1.11, and so on are also named Wdf01000.sys, and each new minor version of the library file overwrites the previous version of the file.

If you built your driver using a version of the KMDF library that is more recent than the version of the framework that is on the system, then the latter must be updated. For information about updating the framework library, see Redistributable Framework Components.

(Note that the framework co-installer's file name includes both the major and minor version numbers. For more information about co-installer file names, see Using the KMDF Co-installer.)

When you build your driver, the MSBuild utility links the driver with a stub file that contains the version number of the library that the MSBuild utility used. When the operating system loads your driver, the framework's loader checks the version information in your driver's stub to determine if the driver will run with the version of the framework library that is on the system.

To determine the version of the library that your driver is running with, the driver can call WdfDriverIsVersionAvailable or WdfDriverRetrieveVersionString.

WDF allows you to build a driver using a different version of Windows than the one that the driver will run on. For more info, see Building a WDF driver for multiple versions of Windows.

For information about the release history of the KMDF library, see KMDF Version History.

UMDF

As with KMDF, the major version number of the UMDF library uses two characters. However, the major version number only appears in the UMDF library file name starting with UMDF version 2.0.

For UMDF version 2.0, the file name of the UMDF library is Wudfx02000.dll.

For UMDF version 1.x, the file name of the UMDF library is Wudfx.dll.

For information about the release history of the KMDF library, see UMDF Version History.