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

Compilation with Visual Studio 2019 under Windows 10 19H2 #2

Open
sparkyparrot opened this issue Apr 27, 2020 · 1 comment
Open

Compilation with Visual Studio 2019 under Windows 10 19H2 #2

sparkyparrot opened this issue Apr 27, 2020 · 1 comment

Comments

@sparkyparrot
Copy link

ADD TO WIKI HOW TO COMPILE and update releases to compile.
I have x64/x86 debug and release if you need.
Compiled under windows 10.0.18363.815 with Visual Studio 2019 16.5.3

The release is not properly working with last version of windows/windbg, you can load the extension but register value are wrong.
Also while cloning project with git, deviare project is unable to compile so had to get it directly on Deviare github.

I managed to get it working by:

  1. Compiling Deviare NktHookLib project in a separate folder , the github project give you all .sln files for different visual studio version.

  2. Configure Deviare Project to target : Visual Studio 2017 - Windows XP (v141_xp) toolset, you can add it with the Visual Studio 2019 Installer.

3.a Remove Deviare Project from the WingDbg solution
3.b Add the library file NktHookLib (ex: NktHookLib64.lib or NktHookLib64_Debug.lib) I compiled for the corresponding build of WingDbg (Debug/Release x64) by adding a link directly in the Library -> Input file type

  1. Recompile WingDbg with the target : Visual Studio 2017 - Windows XP (v141_xp)

  2. Normal install : Copy to .extpath directory of the debugger, load with .load wingdbg , run with !regfix

Its working but as I struggle a bit , this might help some people.

@cr3pte
Copy link

cr3pte commented Sep 29, 2021

I was able to build it from with in the same project(sln) with VS2017 and VS2019 clean.
Which picked up Visual Studio 2015 - Windows XP (v140_xp) as target although for VS2019 XP Support shows as deprecated.

Before the build had to manually do git submodule update --init --recursive in Deviare-InProc, which has udis86 as it's submodule.
refer:

Then it works as expected.

.load wingdbg.dll
!regfix 

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

No branches or pull requests

2 participants