Check Windows version

前端 未结 7 1681
梦如初夏
梦如初夏 2020-12-09 15:34

How I can check in C++ if Windows version installed on computer is Windows Vista and higher (Windows 7)?

7条回答
  •  死守一世寂寞
    2020-12-09 16:14

    You could use the GetVersion() or GetVersionEx() function in the kernel32.dll. This two functions are only available on Windows 2000 or later.

    To read more about this look at http://msdn.microsoft.com/en-us/library/ms724451%28VS.85%29.aspx.

提交回复
热议问题