# microsoft/Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.

Repository: https://github.com/microsoft/Windows-driver-samples
Canonical: https://ross.abutalabs.com/products/windows-driver-samples
Language: C
License: MS-PL
License Family: other
Last push: 2026-08-26T22:28:02+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 4198, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7831, forks 5041 (observed 2026-08-28T04:10:05.807511+00:00)

## What it is
The official Microsoft Windows Driver Kit (WDK) driver code samples for Windows 11, covering both Universal Windows drivers and desktop-only drivers. It provides C/C++ sample code to guide driver development with Visual Studio 2022 and WDK 11.

## Use cases
- learn how to write a Windows device driver
- find sample KMDF or UMDF driver code
- port an older driver to Windows 11
- build a first Hello World kernel-mode driver
- reference driver samples for camera, print, display, NFC, WLAN, or Bluetooth
- set up CI to build drivers with GitHub Actions

## When to choose
- you are developing or porting a Windows driver and need reference implementations
- you are learning Windows driver development with the WDK
- you want official, maintained sample code from Microsoft

## When to avoid
- you need production-ready driver code without modifications
- you are developing drivers for Linux, macOS, or other non-Windows platforms
- you need a driver framework or library rather than example code

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, sdk, documentation
- domain: developer-tools, windows, hardware
- platform: windows, cpp, c
- tags: windows-driver-kit, wdk, device-drivers, kernel-mode, umdf, kmdf, sample-code, visual-studio

## Member repositories
- microsoft/Windows-driver-samples (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:05.807511+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:34:03.062043+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/Windows-driver-samples (fetched 2026-08-28T04:10:05.807511+00:00, sha 3d948548de13)
- Data as of 2026-08-30T08:39:29.467469+00:00.
