private void GetOSVersion() { // Get OperatingSystem information from the system namespace. System.OperatingSystem osInfo = System.Environment.OSVersion; // Determine the platform. switch (osInfo.Platform) { // Platform is Windows 95, Windows 98, // Windows 98 Second Edition, or Windows Me. case System.PlatformID.Win32Windows: intReturn = 0; switch (osInfo.Version.Minor) { case 0: MessageBox.Show("Windows 95"); break; case 10: if (osInfo.Version.Revision.ToString() == "2222A") MessageBox.Show("Windows 98 Second Edition"); else MessageBox.Show("Windows 98"); break; case 90: MessageBox.Show("Windows Me"); break; ...