What is WINVER?

后端 未结 4 1231
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 09:54

I was looking at some code and they had this line: #define WINVER 0x0501 in stdafx.h file? Why do you need to define WINVER? How does

4条回答
  •  遥遥无期
    2020-12-03 10:26

    WINVER defines the minimum Windows system the program can run on. There's a more detailed explanation at MSDN. What #define WINVER 0x0501 means is that the program requires Windows XP or Server 2003 to run, and that it therefore can use Windows functionality up through that release.

提交回复
热议问题