Q: Detecting Windows version.

Hi!

I want to write an application which will tell me if Windows is running, and
if so, what version, eg Windows 3.1, Windows 3.11, Windows95 or WindowsNT.

Thanks in advanace!

/Timmy...