How to determine the Windows version by using Visual C#

http://support.microsoft.com/kb/304283/en-us?spid=12913&sid=global