KaniDivert is a personal fork of WinDivert.
- CMake-based build system
- Supports kernel driver and both static and shared library builds
- Includes fixes and improvements from other forked repositories
-
SYS
- MSVC
- x64: tested and working
- x86: not tested
- MSVC
-
DLL
- MSVC
- x64: tested and working
- x86: not tested
- MinGW
- x64: not tested
- x86: not tested
- MSVC
-
Include and fetch the repository
include(FetchContent) FetchContent_Declare( kanidivert GIT_REPOSITORY https://github.com/kaniteru/KaniDivert GIT_TAG master # You can replace 'master' with a specific tag or branch if needed. ) FetchContent_MakeAvailable(kanidivert)
-
Link to your project
target_link_libraries(your_project PRIVATE kanidivert::shared)
or
target_link_libraries(your_project PRIVATE kanidivert::static)
-
(Optional) Download official WinDivert driver files
# Downloads the official .sys driver files on post build download_windivert_sys(your_project "dest_dir")
- Download prebuilt binaries from the Releases page.
- If you're using the static library, make sure to define
WINDIVERTSTATICin your compiler flags. - (Optional) Download official WinDivert driver files.
KaniDivert follows the same dual-license terms as the original WinDivert:
- GNU Lesser General Public License (LGPL) v3, or
- GNU General Public License (GPL) v2
This project also uses FindWDK (BSD 3-Clause License) for build system integration.
Please refer to the LICENSE file for full details.