ldk 0.7.25
dotnet add package ldk --version 0.7.25
NuGet\Install-Package ldk -Version 0.7.25
<PackageReference Include="ldk" Version="0.7.25" />
<PackageVersion Include="ldk" Version="0.7.25" />
<PackageReference Include="ldk" />
paket add ldk --version 0.7.25
#r "nuget: ldk, 0.7.25"
#:package ldk@0.7.25
#addin nuget:?package=ldk&version=0.7.25
#tool nuget:?package=ldk&version=0.7.25
LDK NuGet Package
LDK is an experimental Win32/NTDLL-like runtime support library for Windows
kernel-mode drivers. It provides headers, native MSBuild imports, CMake helpers,
documentation, and prebuilt Ldk.lib libraries for selected WDK driver
configurations.
This NuGet package is for Visual Studio/MSBuild WDK driver projects
(ldk.<version>.nupkg).
Quick start
Install-Package ldk
Driver projects get:
- public LDK headers under
include/ - automatic include path setup
- automatic
Ldk.liblinkage _KERNEL32_preprocessor definitionLdkDriverEntryas the default driver entry point
Minimal driver:
#include <Ldk/Windows.h>
DRIVER_INITIALIZE DriverEntry;
DRIVER_UNLOAD DriverUnload;
NTSTATUS
DriverEntry(
_In_ PDRIVER_OBJECT DriverObject,
_In_ PUNICODE_STRING RegistryPath
)
{
UNREFERENCED_PARAMETER(RegistryPath);
DriverObject->DriverUnload = DriverUnload;
Sleep(1);
return STATUS_SUCCESS;
}
VOID
DriverUnload(
_In_ PDRIVER_OBJECT DriverObject
)
{
UNREFERENCED_PARAMETER(DriverObject);
}
When LdkDriverEntry is used as the PE entry point, LDK initializes its runtime,
calls your normal DriverEntry, and runs termination hooks before unload.
The package is intentionally narrow. LDK is not a general Windows compatibility layer. Audit every DLL or driver integration and validate it in an isolated driver test environment.
Contents
include/: public LDK headersdocs/: implementation noteslib/native/<toolset>/<arch>/<config>/Ldk.lib: prebuilt static librariesbuild/native/ldk.propsandldk.targets: MSBuild integration
Prebuilt libraries are grouped by MSVC platform toolset, for example
lib/native/v143/x64/Release/Ldk.lib.
Prebuilt libraries currently target:
v142:x86,x64,ARM, andARM64v143:x86,x64,ARM, andARM64v145:x86,x64, andARM64DebugandRelease
Visual Studio 2026 / v145 no longer targets 32-bit ARM, so
lib/native/v145/ARM is intentionally not published.
MSBuild usage
Visual Studio NuGet package restore imports build/native/ldk.props and
build/native/ldk.targets automatically for native projects. If your package
manager does not import native build files automatically, add the imports
manually:
<Import Project="$(LdkPackageRoot)build\native\ldk.props" />
...
<Import Project="$(LdkPackageRoot)build\native\ldk.targets" />
The targets add the package include directory, link Ldk.lib, define
_KERNEL32_, and by default set the driver entry point to LdkDriverEntry.
Your driver should still implement the normal DriverEntry function; LDK's
entry point calls it after initializing the runtime.
Set LdkUseDriverEntry=false before importing ldk.targets if your driver uses
its own entry point and calls LdkInitialize / LdkTerminate manually.
CMake users
The NuGet package is primarily for MSBuild. For CMake-based integrations, a driver project can consume LDK directly from GitHub through CPM:
CPMAddPackage("gh:ntoskrnl7/ldk@<version>")
wdk_add_driver(MyDriver CUSTOM_ENTRY_POINT "LdkDriverEntry" main.c)
target_link_libraries(MyDriver Ldk)
GitHub Releases also include a prebuilt bundle with a CMake package config for offline or prebuilt-library consumers.
Release artifacts
ldk-<version>-prebuilt.zipA prebuilt bundle containing headers, libraries, documentation, CMake helpers, native MSBuild imports, and package config files for offline/manual integration.ldk-<version>-SHA256SUMS.txtChecksum file for offline/manual verification.
For full package usage, API status, and implementation notes, see:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native is compatible. |
-
native 0.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.25 | 225 | 7/24/2026 |
| 0.7.24 | 197 | 7/14/2026 |
| 0.7.23 | 213 | 7/10/2026 |
| 0.7.22 | 206 | 7/9/2026 |
| 0.7.21 | 208 | 7/8/2026 |
| 0.7.20 | 202 | 7/8/2026 |
| 0.7.19 | 217 | 7/6/2026 |
| 0.7.18 | 208 | 7/5/2026 |
| 0.7.17 | 215 | 7/5/2026 |
| 0.7.16 | 216 | 7/4/2026 |
| 0.7.15 | 225 | 7/2/2026 |
| 0.7.14 | 226 | 7/1/2026 |
| 0.7.13 | 229 | 7/1/2026 |
| 0.7.12 | 227 | 7/1/2026 |
| 0.7.11 | 226 | 7/1/2026 |
| 0.7.10 | 214 | 6/30/2026 |
| 0.7.9 | 215 | 6/30/2026 |
| 0.7.8 | 233 | 6/26/2026 |
| 0.7.7 | 231 | 6/23/2026 |
| 0.7.6 | 245 | 6/22/2026 |