Skip to content

MSVC project updates#400

Merged
flobernd merged 9 commits intozyantific:masterfrom
Mattiwatti:msvc-updates
Nov 20, 2022
Merged

MSVC project updates#400
flobernd merged 9 commits intozyantific:masterfrom
Mattiwatti:msvc-updates

Conversation

@Mattiwatti
Copy link
Copy Markdown
Contributor

This PR brings the project files under /msvc up to date with the current v4.0 tree. Most of the changes are fairly straightforward and the commit messages should be self-explanatory for these.

Quick TLDR summary of changes:

  • MSVC projects now use VS2022, not VS2019. NB: this will likely break the CI build until the CI image is also updated to use VS2022 and the 10.0.22621.0 SDK/WDK.
  • Added project files for the Disassemble, DisassembleSimple and EncodeMov samples.
  • Support for building ZydisWinKernel for 32 bit targets has been dropped (not my decision, but the new WDK does not leave much room for choice). If anyone for some reason really wants to build this sample for 32 bit, then this can still be done using VS2019.
  • Synced Zycore/Zydis header files used by the other projects in the solution. This does not affect the generated code, it only improves IntelliSense/Resharper context awareness and navigation when these headers are included.

NB: The ZydisWinKernel sample still compiles for, and runs on Windows 7 x64 and higher as before. However, some adjustments were made in order for this to work, because the VS2022 WDK officially only recognises 'Windows 10 and higher' as valid target OS. 32 bit support for this sample has NOT survived this update due to new WDK restrictions.
This sample does not link when Zydis is built as a shared library, due to ZydisGetRelInfo being an internal (non-dllexported) function.
For Zydis, additionally one source file (Disassembler.c) was missing and has also been added.
@athre0z athre0z requested a review from flobernd November 20, 2022 15:53
Copy link
Copy Markdown
Member

@flobernd flobernd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a lot 🙂

@flobernd flobernd merged commit de4cbcd into zyantific:master Nov 20, 2022
@Mattiwatti Mattiwatti deleted the msvc-updates branch November 20, 2022 17:22
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.

3 participants