mrexodia / TitanHide

Hiding kernel-driver for x86/x64.
MIT License
2.12k stars 421 forks source link

Failed to compile #59

Closed Jeekaz closed 3 years ago

Jeekaz commented 3 years ago

grafik

Jeekaz commented 3 years ago

any ideas?

Mattiwatti commented 3 years ago

The latest Visual Studio update broke the WDK. You can fix this by setting the 'external include path' manually in the project properties, but it's easier to do it in the WDK files because otherwise you'll need to fix every WDK project you ever open or make until they update the WDK again.

  1. Close any open Visual Studio instances.
  2. Go to C:\Program Files (x86)\Windows Kits\10\build and open WindowsDriver.Win32.props and WindowsDriver.x64.props (and WindowsDriver.arm.props/WindowsDriver.arm64.props if you have them) in a text editor. These files will start with something along the lines of
    <PropertyGroup>
    <ExecutablePath >$(ExecutablePath);$(WDKBinRoot_x86);$(WDKContentRoot)tools\x86\Tracing</ExecutablePath>
    </PropertyGroup>

    Add an ExternalIncludePath attribute to the property groups so that they look like this:

    <PropertyGroup>
    <ExecutablePath >$(ExecutablePath);$(WDKBinRoot_x86);$(WDKContentRoot)tools\x86\Tracing</ExecutablePath>
    <ExternalIncludePath>$(CRT_IncludePath);$(KM_IncludePath);$(KIT_SHARED_IncludePath)</ExternalIncludePath>
    </PropertyGroup>
  3. Save the files and reopen your project(s).

This should fix the problem.

Jeekaz commented 3 years ago

Thanks for that solution. It works fine now

Matthijs Lavrijsen @.***> schrieb am So. 30. Mai 2021 um 22:35:

The latest Visual Studio update broke the WDK. You can fix this by setting the 'external include path' manually in the project properties, but it's easier to do it in the WDK files because otherwise you'll need to fix every WDK project you ever open or make until they update the WDK again.

  1. Close any open Visual Studio instances.
  2. Go to C:\Program Files (x86)\Windows Kits\10\build and open WindowsDriver.Win32.props and WindowsDriver.x64.props (and WindowsDriver.arm.props/WindowsDriver.arm64.props if you have them) in a text editor. These files will start with something along the lines of
$(ExecutablePath);$(WDKBinRoot_x86);$(WDKContentRoot)tools\x86\Tracing

Add an ExternalIncludePath attribute to the property groups so that they look like this:

$(ExecutablePath);$(WDKBinRoot_x86);$(WDKContentRoot)tools\x86\Tracing $(CRT_IncludePath);$(KM_IncludePath);$(KIT_SHARED_IncludePath)
  1. Save the files and reopen your project(s).

This should fix the problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mrexodia/TitanHide/issues/59#issuecomment-851057653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUJAK35EUQPDW6SHD656SF3TQKOR5ANCNFSM45ZMKFTA .