I cant compile/launch any C++ UE4 Projects even blank ones. Windows.h missing?!

Hello. I have a problem with my Windows SDKs and UE4. I have been trying to fix it myself for several hours now… I cant compile any C++ UE4 projects (even empty ones), because im supposingly missing windows.h (im on windows btw). But if i try to make a new empty console application C++ project using visual studio (2017) and include windows.h it works… I can even look at windows.h itself. I have tried installing all the windows SDKs and C++ runtimes i could find (Windows 10 AND 8). I have tried restarting my Computer several times. I had this issue before. I installed like ALL the SDKs and then it just worked. Now reinstalled windows and i cant get it to work.
im getting the error

D:\UE_4.19\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'.  

if i try to compile any project.

this is my whole compile log:

1>------ Erstellen gestartet: Projekt: CompilePLs, Konfiguration: Development_Editor x64 ------
1>Performing 9 actions (4 in parallel)
1>[2/9] Resource ModuleVersionResource.rc.inl
1>[3/9] Resource PCLaunch.rc
1>D:\UE_4.19\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'.
1>
1>D:\UE_4.19\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10): fatal error RC1015: cannot open include file 'windows.h'.
1>
1>SharedPCH.Engine.cpp
1>d:\ue_4.19\engine\source\runtime\core\public\windows\WindowsSystemIncludes.h(27): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "intsafe.h": No such file or directory
1>UnrealBuildTool : error : UBT ERROR: Failed to produce item: D:\_UnrealEngineProjects\CompilePLs\Binaries\Win64\UE4Editor-CompilePLs.dll
1>Total build time: 7,95 seconds (Local executor: 0,00 seconds)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: Der Befehl "D:\UE_4.19\Engine\Build\BatchFiles\Build.bat CompilePLsEditor Win64 Development "D:\_UnrealEngineProjects\CompilePLs\CompilePLs.uproject" -WaitMutex -FromMsBuild" wurde mit dem Code 5 beendet. Stellen Sie sicher, dass Sie zur Ausführung dieses Befehls berechtigt sind.
1>Die Erstellung des Projekts "CompilePLs.vcxproj" ist abgeschlossen -- FEHLER.
========== Erstellen: 0 erfolgreich, 1 fehlerhaft, 0 aktuell, 0 übersprungen ==========

I have reinstalled Unreal Engine and visual studio (2015 and 2017) several times and tried both visual studio versions. I generated new project files and visual studio solutions every time.

Hello,

take a look at this post:
The project could not be compiled - Programming & Scripting - Unreal Engine Forums.

Its a 404 for me :confused:

Sorry, I didn’t check if link works. Launch visual studio installer and install Windows SDK.

If it will not help try Setting Up Visual Studio for Unreal Engine | Unreal Engine Documentation