If you try using this library directly in a Windows kernel driveryou'll see five extra imports from Kernel32.dll that shouldn't be there.
If you look at the Visual Studio solutions in zydis/msvc, you'll see that the ZydisWinKernel solution needs the BufferOverflowK library to build properly.
This can be fixed adding the following line to build.rs:
println!("cargo:rustc-link-lib=BufferOverflowK");
If you try using this library directly in a Windows kernel driveryou'll see five extra imports from Kernel32.dll that shouldn't be there.
If you look at the Visual Studio solutions in zydis/msvc, you'll see that the ZydisWinKernel solution needs the BufferOverflowK library to build properly. This can be fixed adding the following line to
build.rs
:println!("cargo:rustc-link-lib=BufferOverflowK");