Hi Potato, I’m not sure I can help you very much, as it works fine on my end. A few things you could try though:
Do those files actually exist (Ie, windows.h) ?
If they do exist, then the only things I can think of that may be causing the errors would be not having access or administrator privileges to those folders.
Another thing you could try is right click on the uproject file -> rebuild visual studio files. Then open the .sln file and compilie it via visual studio before opening the uproject file.
I had something like this the other day. I think it was either from bad code that threw the UE4 macros off, or I had to do this fix.
Click those errors in Visual Studio to be brought to the allegedly missing includes. Then right click the include and do open. You probably do have the files but are running into some configuration errors (need to change all include dirs to “inherit from parent”).
I found a real fix (the “inherit from parent” fix is hacky and breaks later on). Somehow “C:\Windows\System32” was removed from my PATH. I added “C:\Windows\System32;C:\Windows\SysWOW64” and everything seems to work so far. See if this works for you too.
What a crazy solution. How did you find out that this was the culprit? It wouldn’t ever have occured to me to look at if the system folders are in path!