B
Bennett Haselton
I have a program that uses the System.Environment.OSVersion to report
on the platform where it's running:
Console.WriteLine(System.Environment.OSVersion.ToString());
Console.WriteLine(System.Environment.OSVersion.Platform.ToString());
Console.WriteLine(System.Environment.OSVersion.Version.ToString());
However this code gives the same output on both XP Home and XP Pro:
Microsoft Windows NT 5.1.2600.0
Win32NT
5.1.2600.0
What C# call could I use to find out if I'm running on XP Home or XP
Pro?
-Bennett
on the platform where it's running:
Console.WriteLine(System.Environment.OSVersion.ToString());
Console.WriteLine(System.Environment.OSVersion.Platform.ToString());
Console.WriteLine(System.Environment.OSVersion.Version.ToString());
However this code gives the same output on both XP Home and XP Pro:
Microsoft Windows NT 5.1.2600.0
Win32NT
5.1.2600.0
What C# call could I use to find out if I'm running on XP Home or XP
Pro?
-Bennett