title: How to get the OS version in Win8.1 as GetVersion/GetVersionEx are deprecated?
body: <p>I have scenarios where i want to specifically know the OS major/minor version and build number etc. </p>
  
  <p>From windows 8.1 onwards <code>GetVersion</code> and <code>GetVersionEx</code> have been deprecated, stating: </p>
  
  <blockquote>
    <p>[<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms724439%28v=vs.85%29.aspx" rel="noreferrer">GetVersion</a>/<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms724451(v=vs.85).aspx" rel="noreferrer">GetVersionEx</a> may be altered or unavailable for releases after Windows 8.1. Instead, use the Version Helper functions]</p>
  </blockquote>
  
  <p>None of the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dn424972(v=vs.85).aspx" rel="noreferrer">version helper APIs</a> help me get the OS version number rather help me verify or get to know if my version is same or above some mentioned version. What can be done?</p>