| English (en-US) | 简体中文 (zh-CN) |
|---|
KNSoft.NDK provides native C/C++ definitions and import libraries for Windows NT development.
- 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, ...
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.
The following features are NOT enabled by default, reference corresponding headers and libraries on demand:
- Ntdll Hash API (
(A_SHA/MD4/MD5)(Init/Update/Final))- Ntdll.Hash.h
- KNSoft.NDK.Ntdll.Hash.lib (Generated from KNSoft.NDK.Ntdll.Hash.xml)
- Ntdll CRT
- KNSoft.NDK.Ntdll.CRT.lib (Generated from KNSoft.NDK.Ntdll.CRT.xml)
- Windows API import library addendum
- KNSoft.NDK.WinAPI.lib (Generated from KNSoft.NDK.WinAPI.xml)
- Unit Test Framework
- Safe string functions (different from
strsafe.hin Windows SDK) - Command-line parsing functions
- Random numbers generation functions
The following features are enabled by default, can be excluded by defining corresponding macro:
| Macro | Exclude feature |
|---|---|
| _KNSOFT_NDK_NO_EXTENSION | Addendum or extension macros and definitions |
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.
KNSoft.NDK is licensed under the MIT license.
The content from the following public project(s):
- phnt (from winsiderss/systeminformer) - MIT
And public sources were lawfully used:
- Microsoft WDK/DDK/SDK
- Microsoft Public Symbolic Data
- Microsoft Learning
- Microsoft Windows Protocols
- Windows Internals
- Microsoft.Windows.SDK.CRTSource
And KNSoft/Precomp4C to generate DLL import libraries.