readDriver is a Windows research workspace built around a kernel-mode driver and two user-mode clients that speak the same IOCTL request format.
At a high level, the repository contains:
- a KMDF driver in dummy
- a native C console client in controller/controller
- a C# client with both CLI and WinForms GUI modes in client
- a shared request contract in common/protocol.h
This repo is best treated as a local development and research workspace. It includes build helpers and documentation, but it does not include a full deployment or service-install story for the driver.
The workspace is now prepared to open in Visual Studio 2026. Driver builds still require a matching WDK task assembly for the MSBuild version you use.
The current protocol includes copy, read, scan, protect, patch, write-integer, batch-read, read-with-protect, and read-as-hex operations. The shared request still uses one fixed-width struct, so operation-specific field meanings are documented in docs/ARCHITECTURE.md.
The root solution also now includes a managed regression-test project in client.Tests.
The project is a Visual Studio solution for experimenting with a Windows driver and small user-mode tools that send DeviceIoControl requests to it. The shared request structure lives in common/protocol.h, and both clients use that same contract to talk to the driver device \\\\.\\Global\\Ki000.
The current codebase is organized as one root workspace with three main executable modules:
dummyKMDF kernel drivercontrollernative C command-line clientclient.NET client with command-line and GUI entry pointsclient.TestsManaged regression tests focused on the C# client request/response helpers
Today the client surfaces are intentionally uneven:
- the native controller can print response data returned by the driver
- the C# CLI can submit the expanded operation set and decode response payloads
- the WinForms GUI exposes the core request operations (
Copy,Protect,Patch,WriteInteger) plus a dedicated Freeze tab for one to four target addresses
The driver lifecycle currently uses separate internal and public names:
- internal driver object:
\\Driver\\gammaA####(randomized each load, e.g.,\\Driver\\gammaA8973) - internal device object:
\\Device\\gammaA####(randomized each load) - public client path:
\\\\.\\Global\\Ki000
The public path is a global DOS symbolic link. The unload command and GUI button remove that public link and decommission the current driver surface; they do not force-delete the kernel driver object.
If you are new to the repo, use this order:
- Read PROJECT_OVERVIEW.md
- Follow BUILD_AND_RUN.md
- Use ARCHITECTURE.md when you need code-level structure
- common Shared protocol definitions.
- dummy Driver project source.
- controller Native client project and controller-only solution.
- client C# client project.
- docs Project documentation.
- readDriver.sln Root solution for day-to-day development.
- build-all.ps1 Root build helper for all projects.
- publish-client.ps1 Standalone publish helper for the C# client.
The root Visual Studio solution currently contains:
- the driver project
- the native controller project
- the C# client project
- the
client.Testsproject - helper solution folders such as
Applications,Driver,Shared,Scripts, andDocs
Those helper folders exist in the solution file, but the current .sln no longer nests every project underneath them.
From the repository root:
.\build-all.ps1Release build:
.\build-all.ps1 -Configuration Release -Platform x64Standalone C# client publish:
.\publish-client.ps1Managed regression tests:
dotnet test .\client.Tests\client.Tests.csproj -nologoFor the full setup, build, output, and run workflow, see BUILD_AND_RUN.md.