19

There are documented values for Windows Vista to 10. The first Insider build of Windows 11 was just released, and the documentation wasn't updated yet, but perhaps it can be found somewhere in the system.

2
  • 2
    I'll add to this that some devs, who are testing Windows 11 insider builds, want to have the ability to update version detection from their applications before the formal Windows 11 release, so that we don't get flooded with complaints of "Your app says I'm running Windows 10, but I am using Windows 11!!". Bear in mind that, just like Windows, it can take a few months for an app to get released, in which case getting the GUID around release day doesn't quite cut it. So once again Microsoft's hare-brained scheme of deliberately misreporting Windows version comes to bite developers...
    – Akeo
    Jul 8, 2021 at 15:19
  • @Akeo totally agree. For now, I'm using GetVersionEx and reporting Windows 11 if dwMajorVersion == 10 && dwMinorVersion == 0 && dwBuildNumber >= 22000.
    – Paul
    Jul 8, 2021 at 21:24

4 Answers 4

13

After a bit of fiddling around, seems like the current answer (at least for build 22000.51) is that there's no GUID yet. I found the list of GUIDs in ntdll.dll under the symbol SbSupportedOsList, referenced by a function called SbGetContextDetailsByVersion. The list contains only the five GUIDs mentioned in the documentation.

9

Microsoft says

... The following GUIDs correspond with the indicated operating systems: {8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a} -> Windows 10, Windows 11, Windows Server 2016, Windows Server 2019 and Windows Server 2022 ...

Application Manifests: Elements: supportedOS

1
  • 2
    Worth noting that the documentation was updated since the question was posted. And the respective Git commit message explicitly says: "Windows 11 and also Windows Server 2022 don't have a new GUID for the SupportedOS. So, please add these OSs to the corresponding GUID's comment." Dec 3, 2021 at 6:52
3

Have a look at the documentation.

You use the Windows 10 GUID for >= Windows 10, and >= Server 2016.

0
1

There is no new supportedOS manifest because Microsoft decided to keep the 10.0 version number. The supportedOS manifest for Windows 10 will continue to expose the current build number; 21996 and up can be assumed to be Windows 11.

4
  • "The supportedOS manifest for Windows 10 will continue to expose the current build number" – I do not understand what you mean by that phrase. Sep 14, 2021 at 5:30
  • I meant to say they didn't need to add a new supportedOS manifest due to the build number behavior.
    – William
    Oct 2, 2021 at 17:01
  • 2
    Hmmm, crazy, isn't it? You'd almost be forgiven for thinking that Windows 11 is just a new skin on an old OS. Oct 21, 2021 at 13:37
  • Where did you get this information?
    – Shaggie
    Oct 27, 2021 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.