- Moderator
- #11
Well, I think that we need to do it right away and correctly, and close all current options. But you made the changes as you see fit, create a Pull Request, we will make them in the next release.
Hello,I can offer you this option.
I use.Even if I don't think MP is often used with Windows Server OSes, let's say it's OK for me.
I didn't reject anything, I don't like the look of your changes, so I don't want to post them under my name. Therefore, I suggested that you make them under yours, but you do not want this either.Reject because not all OSes has been implemented (or others things like that, depending on cases), is not really correct and, can hurt, sometimes.
case 10:
{
switch (OSMinorVersion)
{
case 0:
if (OSProductType == NTProductType.NT_WORKSTATION)
{
if (OSBuildVersion < 22000)
osName = "Windows 10";
else
osName = "Windows 11";
}
break;
}
break;
}
It will work, because there will always be 0, except that in Windows 12 it can theoretically change if the platform changes.Tomorrow, Win 11 22Hxx or 23Hxx, blabla... is not OSMinorVersion = 0, your code will not work...
May be you are working for Msoft and you have such informations ?It will work, because there will always be 0, except that in Windows 12 it can theoretically change if the platform changes.