Hello,
Im trying to detect in my application what OS it is running.
I found this code:
// Get the Operating System From Environment Class
OperatingSystem os = Environment.OSVersion;
// Get the version information
Version vs = os.Version;
MessageBox.Show (vs.Major.ToString());
MessageBox.Show (vs.Minor.ToString());
MessageBox.Show (vs.Revision.ToString());
MessageBox.Show (vs.Build.ToString());
2 questions:
is there a better way to detect OS ? maybe WMI ?
how can I know if its XP 32 or XP 64 ?
Thanks