Win 8 result should be Win 10

  • Thread starter Thread starter jack0987
  • Start date Start date
J

jack0987

Guest
For Win 10, I am getting Win 8 as a result from this switch. Please comment.


switch (vsMajor)
{
case 3:
osName = "Win NT 3.51";
break;
case 4:
osName = "Win NT 4.0";
break;
case 5:
if (vsMinor == 0)
osName = "Win 2000";
else
osName = "Win XP";
break;
case 6:
if (vsMinor == 0)
osName = "Win Vista";
else if (vsMinor == 1)
osName = "Win 7";
else if (vsMinor == 2)
osName = "Win 8";
break;
case 10:
osName = "Win 10";
break;
}

Continue reading...
 
Back
Top