Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SAR build on the current Windows toolchain #137

Merged
merged 13 commits into from
May 15, 2024
Merged

Conversation

eiz
Copy link
Owner

@eiz eiz commented Apr 22, 2024

Bring the code up to bare minimum standard of buildability. Fix compile errors in topology pin code and remove win7 ifdefs to ensure the array length always matches. Remove calls to deprecated ExAllocatePoolWithTag function in favor of ExAllocatePool2. Retarget to current Windows SDK/WDK. Add required project settings. Remove SarNdis/etc from solution.

This is still relying on the WiX 3.x toolset. Build is now VS2022 community edition.

With these changes whatever vestige of win7 support still existed will go away due to WDK incompatibility.

AppVeyor's Visual Studio 2022 image did not have a version of the WDK installed which is actually compatible with Visual Studio 2022 (only the 2019 VSIX is present in that WDK version), so this PR also switches to GitHub Actions for CI.

Also due to WDK changes, the 32-bit kernel target of SAR no longer exists. There is only one .msi now and it is for 64-bit Windows 10 (version 2004) or later. The 32-bit SarAsio.dll is still built for compatibility with 32-bit apps.

@eiz eiz force-pushed the mack/fix-compile-errors branch 8 times, most recently from 4cf1faa to 1790dbd Compare April 23, 2024 02:00
eiz added 9 commits April 22, 2024 22:20
Bring the code up to bare minimum standard of buildability. Fix compile
errors in topology pin code and remove win7 ifdefs to ensure the array
length always matches. Remove calls to deprecated ExAllocatePoolWithTag
function in favor of ExAllocatePool2. Retarget to current Windows
SDK/WDK. Add required project settings.

This is still relying on the WiX 3.x toolset. Build is now VS2022
community edition.
@eiz eiz force-pushed the mack/fix-compile-errors branch from 678075e to c442b36 Compare April 23, 2024 02:21
TODO: github action for deploying artifacts.
@eiz eiz force-pushed the mack/fix-compile-errors branch from 30087b5 to 9eb4ebf Compare April 23, 2024 02:32
@eiz eiz changed the title compile errors, deprecated calls, win7, retarget Make SAR build on the current Windows toolchain Apr 23, 2024
@MonstoBusta
Copy link

MonstoBusta commented Apr 23, 2024

POG. Seriously though I'm curious if ExAllocatePool2 does anything differently.

@eiz eiz marked this pull request as ready for review May 15, 2024 09:11
@eiz eiz merged commit e49164a into master May 15, 2024
1 check passed
@eiz eiz deleted the mack/fix-compile-errors branch May 15, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants