basil00 / WinDivert

WinDivert: Windows Packet Divert
https://reqrypt.org/windivert.html
Other
2.56k stars 512 forks source link

Compatibility with Visual Studio 2022 #341

Open etkaar opened 1 year ago

etkaar commented 1 year ago

Is it compatible with Visual Studio 2022? It seems the drivers can't be build using wddk-build.bat as it complains about a missing windivert_log.rc:

D:\dev\WinDivert-2.2.2-Source\WinDivert-2.2.2>wddk-build.bat
path contains nonexistant c:\windows\system32\openssh\, removing
path contains nonexistant c:\users\office\.dotnet\tools, removing
BUILD: Compile and Link for x86
BUILD: Start time: Sun Sep 03 16:49:47 2023
BUILD: Examining D:\dev\windivert-2.2.2-source\windivert-2.2.2 directory tree for files to compile.
BUILD: Compiling D:\dev\windivert-2.2.2-source\windivert-2.2.2\sys directory
Configuring OACR for 'root:x86fre' - <OACR on>
Sep 03 16:49:47 oacr.dll  OACR version change (from build '0' to '30122')
_NT_TARGET_VERSION SET TO WINXP
Compiling resources - sys\windivert.rc
1>errors in directory D:\dev\windivert-2.2.2-source\windivert-2.2.2\sys
1>D:\dev\windivert-2.2.2-source\windivert-2.2.2\sys\windivert.rc(38) : error RC1015: cannot open include file 'windivert_log.rc'.
Compiling - sys\windivert.c
1>D:\dev\windivert-2.2.2-source\windivert-2.2.2\sys\windivert.c(46) : error C1083: Cannot open include file: 'windivert_log.h': No such file or directory
BUILD: Linking for D:\dev\windivert-2.2.2-source\windivert-2.2.2\sys directory
_NT_TARGET_VERSION SET TO WINXP
Compiling resources - sys\windivert.rc
1>D:\dev\windivert-2.2.2-source\windivert-2.2.2\sys\windivert.rc(38) : error RC1015: cannot open include file 'windivert_log.rc'.
Compiling - sys\windivert.c
1>D:\dev\windivert-2.2.2-source\windivert-2.2.2\sys\windivert.c(46) : error C1083: Cannot open include file: 'windivert_log.h': No such file or directory
1>NMAKE : fatal error U1073: don't know how to make 'c:\winddk\7600.16385.1\lib\wxp\i386\fwpkclnt.lib'
1>nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR= failed - rc = 2
BUILD: Finish time: Sun Sep 03 16:49:49 2023
BUILD: Done

    8 files compiled - 2 Warnings - 6 Errors
GrigLog commented 1 month ago

How did you fix it? I have the exact same errors

etkaar commented 1 month ago

I wasn't able to fix it unfortunately.