Win10 VS2017 prompts that the include file "Windows.h" cannot be opened

First, see if the windows sdk is installed. If it is not installed, please open the visual Stdio Installer, then select modify, and check the latest version of the windows SDK

as shown in the red box. Then right-click the project properties, configure properties -> general. Windows SDK version select the version just installed

Guess you like

Origin blog.csdn.net/qq_39400113/article/details/109727425