Hi,
I'm looking for a reliable way of detecting the version of Windows that the
..NET framework is installed on, specifically the service pack. Currently,
I'm using System.Environment.OSVersion and pulling the Major, Minor, Build
and Revision properties out of that.
However, e.g. Windows XP returns exactly the same values for no initial
build, SP1 or SP2.
I found the following site:
http://www.c-sharpcorner.com/FAQ/OSV...ngEnvClass.asp which makes
reference to a .CSD property of System.Environment.OSVersion, but I don't
think that's correct.
Is a call to the WinAPI GetVersionEx function the only way to achieve this?
Mark