KNSoft.NDK

October 11, 2025 · View on GitHub

English (en-US)简体中文 (zh-CN)

 

KNSoft.NDK

NuGet Downloads GitHub Actions Workflow Status PR Welcome GitHub License

KNSoft.NDK provides native C/C++ definitions and import libraries for Windows NT development.

Feature

  • Undocumented API declarations and type definitions, e.g. Nt/Zw*, Ldr*, PEB, TEB, LDR_*, ...
  • Import library addendum for Windows DLL exports, e.g. KERNEL32.dll!CreateProcessInternalW, ntdll.dll!LdrRegisterDllNotification, ...
  • Addendum to Windows SDK
  • Extension macros and definitions, e.g. NtCurrentPeb(), PEB(64/32), TEB(64/32), ...
  • Function packages implemented by native method, e.g. unit test framework, safe string functions, command-line parsing, random numbers generation, ...

Usage

NuGet Downloads

TL;DR

Include NDK.h instead of (or BEFORE) Windows.h will do.

#include <KNSoft/NDK/NDK.h>

NuGet package KNSoft.NDK includes all the headers and import libraries.

Details

The following features are NOT enabled by default, reference corresponding headers and libraries on demand:

The following features are enabled by default, can be excluded by defining corresponding macro:

MacroExclude feature
_KNSOFT_NDK_NO_EXTENSIONAddendum or extension macros and definitions

Compatibility

PR Welcome GitHub Actions Workflow Status

KNSoft.NDK always follow up the latest Windows NT and specifications, targets to x86, x64, ARM64, and ARM64EC platforms.

Only support the latest MSVC generation tools and SDKs.

Caution

In beta stage, should be used with caution.

License

GitHub License

KNSoft.NDK is licensed under the MIT license.

The content from the following public project(s):

And public sources were lawfully used:

And KNSoft/Precomp4C to generate DLL import libraries.