Get OS in c++ win32 for all versions of win?

前端 未结 4 1334
旧巷少年郎
旧巷少年郎 2020-12-11 06:12

How to get the OS version for all windows, at least the name for win95,98,me,xp,vista,7?

Im using visual c++ 2010 and I want to include this feature in a pure win32

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-11 06:52

    Take a look at the MSDN article Getting the System Version

    While the article only mentions currently supported Windows versions, see this knowledge base article for the numbers you'll see in the OSVERSIONINFO structure for Win 95, 98 etc.

提交回复
热议问题