How is your Plugin checking this?
It would be good to document the behavior, as it seems that the currently used “hacks” (with no official documentation from Microsoft yet) could break…
We check the build number. Let me know whether this fails.
I use some code to check for different OS versions and build number also via registry in addition to the simply GetVersionEx function to get the real build number.
All I’m saying is that we should keep an eye on this, as there is no official information yet. The build number might change (but unlikely be a lower number), or there might be a different Major/Minor for the final version which is more explicit (maybe again unlikely, since it could break existing applications).
Or Microsoft might add a new and official helper method such as in Windows->Apps->Win32->API->Versionhelpers.h : IsWindows10OrGreater function.
The trouble is Windows 11 still advertises itself as Windows 10, at least according to the major.minor.build.rev scheme. Luckily, their build numbers appear to be pretty consistent. Windows 10 build numbers range 10000 to 19999, Windows 11 build numbers 20000 to [presumably] 29999. Windows 8.1 was 9000 to 9999. But you’re right, they haven’t given us an official way to detect Windows 11, I think because it’s mostly a marketing name. Under the hood, it’s still mostly just Windows 10.