According to MSDN, GetVersionEx (the de facto way of getting the current windows version) has become deprecated as of Windows 8.1. Apparently it returns wrong values (corresponding to Windows 8) if called on a windows 8.1 or 10 machine. However, it can be made to return correctly if the application's manifest is modified correspondingly. But I'm not sure this is such a good solution since
GetVersionEx may be altered or unavailable for releases after Windows 8.1
I was thinking of simply reading the information I need from this registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion .
Is there any reason I should avoid doing this, given the current situation (API deprecation) ?