Windows Driver Frameworks


Windows Driver Frameworks, is a set of Microsoft tools and libraries that aid in the creation of device drivers for Windows 2000 and later versions of Windows NT. It complements Windows Driver Model, abstracting away much of the boilerplate complexity in writing Windows drivers. Windows Vista and later are included WDF natively; for Windows 2000 and Windows XP, the WDF update is available.
WDF consists of Kernel-Mode Driver Framework and User-Mode Driver Framework. These individual frameworks provide a new object-oriented programming model for Windows driver development. The primary goals of WDF is conceptual scalability and reduced duplication, enabling developers to apply the same concepts across different driver types and reducing the code overhead required for drivers. This differs markedly from the Windows Driver Model which requires driver developers to be fully familiar with many complex technical details to write a basic driver.
Part of the key to achieving conceptual scalability is that KMDF and UMDF use an "opt-in" model. This model allows the developer to extend and override the default behavior of a canonical "good driver". In contrast, Windows Driver Model depends on the driver writer to implement all aspects of the driver's behavior.

Varieties

There are three types of WDF drivers:
  • Kernel-Mode Driver Framework, for writing standard kernel-mode device drivers
  • User-Mode Driver Framework v1, for writing user-mode drivers using a C++ COM-based API
  • User-Mode Driver Framework v2, for writing user-mode drivers with syntactic parity to KMDF
WDF also includes a set of static verification tools for use by driver writers. These tools examine driver code for common errors and/or simulate the code of a driver in order to identify problems that are both difficult to detect and difficult to test for.

Versions

Operating systemUMDF 1.5UMDF 1.7UMDF 1.9UMDF 1.11UMDF 2.0UMDF 2.15UMDF 2.17UMDF 2.19UMDF 2.21UMDF 2.23UMDF 2.25UMDF 2.27UMDF 2.29UMDF 2.31UMDF 2.33
Windows 11, 21H2
Windows 10, 2004
Windows 10, 1903
Windows 10, 1809
Windows 10, 1803
Windows 10, 1709
Windows 10, 1703
Windows 10, 1607
Windows 10, 1511
Windows 10, 1507
Windows 8.1
Windows 8
Windows 7
Windows Server 2008
Windows Vista SP1
Windows Vista
Windows Server 2003
Windows XP