Win10 vs 2017 prompt cannot open include file: “windows. H”: no such file or director

First see if there is a Windows SDK installed, if not, please open the Visual Stdio Installer, then select modify, tick the latest version of the Windows SDK

As shown in the red box. Then right click on the project properties and configure properties -& GT; Routine. The Windows SDK version selects the version you just installed

Test to see if it can be included, if not. VC++ directory on the above property page -> Open in the include directory, see if the UM folder is in it, and if not, add it to the include directory. Windows.h Files are in this directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\windows.h

Read More: