title: Is there an *official* way to detect Windows 11?
body: <p>The following question contains various ways to detect whether a system is running Windows 10 or Windows 11:</p>
  <ul>
  <li><a href="https://stackoverflow.com/q/68510685/87698">How to detect Windows 11 using Delphi 10.3.3</a></li>
  </ul>
  <p>However, they all seem a bit &quot;hackish&quot; and brittle: checking file versions, build numbers, API availability, etc. Since the release of Windows 11 is just around the corner (ETA Oct 5), software vendors don't have much time left to prepare. Hence my question:</p>
  <p>Has Microsoft published an <strong>officially recommended</strong> way for software developers to check for Windows 11, if you have a legitimate reason¹ for needing to know?</p>
  <hr />
  <p>¹ I am aware that many programs <em>think</em> they need to check the OS version number, when, in fact, they should only be concerned about the availability of the specific feature they need. I fully support that. However, there are legitimate use cases (for example, a system management or software inventory tool), and I'd ask you to assume a legitimate use case for the purpose of this question.</p>
  <p>PS: This question is deliberately not constrained to a particular technology; I consider any <em>officially supported</em> solution (using WinAPI, WMI, COM, .NET, ...) a valid answer.</p>