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

前端 未结 4 1335
旧巷少年郎
旧巷少年郎 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 07:08

    Use GetVersionEx http://msdn.microsoft.com/en-us/library/ms724451%28v=VS.85%29.aspx

提交回复
热议问题